-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: Gone crazy with the first tutorial application
PostPosted: Tue Jul 26, 2005 12:07 pm 
Beginner
Beginner

Joined: Tue Jul 19, 2005 1:24 pm
Posts: 22
Hi all,

I am gone crazy trying to run the first tutorial application in chp 2 of the documenation. For some reason ant tries to use GIJ (java bytecode interpreter) to run the application and this is what I get when I run it:


$ant run -Daction=store
Buildfile: build.xml

clean:
[delete] Deleting directory /a/data/kashi/bin
[mkdir] Created dir: /a/data/kashi/bin

copy-resources:
[copy] Copying 3 files to /a/data/kashi/bin

compile:
[javac] Compiling 3 source files to /a/data/kashi/bin

run:
[java] gij: unrecognized option -- `-classpath'
[java] Try `gij --help' for more information.
[java] Java Result: 1

BUILD SUCCESSFUL
Total time: 0 seconds


I have no clue why is it doing that and kind of making my life miserable .....Any suggestions guys???


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 26, 2005 12:35 pm 
Regular
Regular

Joined: Thu May 26, 2005 2:08 pm
Posts: 99
Can you show a copy of your environment variables?

i.e. Open a command prompt, type "set > env.txt" and copy the contents of that file to here. (I'm assuming you're on Windows. If you're using Unix, I'm sure you know how to do something similar.)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 26, 2005 12:44 pm 
Beginner
Beginner

Joined: Tue Jul 19, 2005 1:24 pm
Posts: 22
jdl wrote:
Can you show a copy of your environment variables?

i.e. Open a command prompt, type "set > env.txt" and copy the contents of that file to here. (I'm assuming you're on Windows. If you're using Unix, I'm sure you know how to do something similar.)


Sorry I should have mentioned that.... I am on Linux box. and the only env variables relevant to this application which I guess you are intersted to see are:

JAVA_HOME=/usr/java/jdk1.5.0_04
PATH=/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/java/jdk1.5.0_04/bin:.


What else do you think needs to be set as env variables ????


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 26, 2005 1:15 pm 
Regular
Regular

Joined: Thu May 26, 2005 2:08 pm
Posts: 99
Well, it just doesn't seem like this is a Hibernate problem. I'd suggest you start with the Ant documentation and start looking at the environment variables that it thinks are important (JAVACMD in particular).

http://ant.apache.org/manual/running.html#envvars

I'd also check to make sure that an alias isn't screwing things up. For instance, if you run "$ java -version" are you seeing what you expect, or are you seeing something about gij?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 26, 2005 1:18 pm 
Beginner
Beginner

Joined: Tue Jul 19, 2005 1:24 pm
Posts: 22
jdl wrote:
Well, it just doesn't seem like this is a Hibernate problem. I'd suggest you start with the Ant documentation and start looking at the environment variables that it thinks are important (JAVACMD in particular).

http://ant.apache.org/manual/running.html#envvars

I will definetly check on this ....


I'd also check to make sure that an alias isn't screwing things up. For instance, if you run "$ java -version" are you seeing what you expect, or are you seeing something about gij?


Nice catch on this, but yes I tried $java -version and YES I can see my current version of java that is installed on my machine. Thanks for the help coming, I will definetly keep you posted about whats happening on the ANT side.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.