-->
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: Problem running the First Hibernate Application
PostPosted: Mon Jul 25, 2005 1:09 pm 
Beginner
Beginner

Joined: Tue Jul 19, 2005 1:24 pm
Posts: 22
Hey Folks,

I am trying to run my first Hibernate Application, which is also the first example application on the online hibernate tutotail chp 2 Intro To Hibernate, http://www.hibernate.org/hib_docs/v3/re ... orial.html


Everything works ok , I can build the application using ANT, but when I run ant as what the documenation says like:

$ant run -Daction=store

I get the following errors, and I have no clue whats going wrong except the fact that I guess it has something to do with the classpath. Could someone please guide me with this problem.

Heres what it looks like when I run the application:
------------------------------------------------------------------

$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



Thanks in advance,

Regards,
Sam


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 25, 2005 1:28 pm 
Beginner
Beginner

Joined: Thu Jul 07, 2005 7:12 pm
Posts: 25
You're running with gij, not java. Were you aware of that?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 25, 2005 1:30 pm 
Beginner
Beginner

Joined: Tue Jul 19, 2005 1:24 pm
Posts: 22
aidano wrote:
You're running with gij, not java. Were you aware of that?


No ..... And what again is gij ??? I have no clue? Can you focus more on it ....


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 25, 2005 1:42 pm 
Beginner
Beginner

Joined: Thu Jul 07, 2005 7:12 pm
Posts: 25
It's an open source Java runtime:

http://gcc.gnu.org/onlinedocs/gcj/Invoking-gij.html

I don't know much about it honestly so can't help further.


Top
 Profile  
 
 Post subject: Why does my Hiberbnate application use gij interpretor?
PostPosted: Mon Jul 25, 2005 4:14 pm 
Beginner
Beginner

Joined: Tue Jul 19, 2005 1:24 pm
Posts: 22
Does any one know why does my application use GIJ interpreter when I didnt even specify to use it anywhere? Is it something to do with how ant is configured, to use GIJ, or what???

Any ideas anybody .....


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.