-->
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.  [ 4 posts ] 
Author Message
 Post subject: ant startdb results in NoClassDefFoundError
PostPosted: Fri Apr 25, 2008 3:32 pm 
Newbie

Joined: Tue Feb 19, 2008 2:30 pm
Posts: 10
Hibernate version: 3.2
Name and version of the database you are using: HSQLDB

I have downloaded the Hibernate HelloWorld code. When I run ant startdb, I get a NoClassDefFoundError exception. Please help me figure out what could I be doing wrong! From the ant output, looks llike the program is looking for server.properties file, which does not exist.

Thank you!

Full stack trace of any exception that occurs:
[delete] Deleting directory C:\!downloads\Hibernate\jpwh-gettingstarted-070401\helloworld-native\database
[java] [Server@186db54]: [Thread[main,5,main]]: checkRunning(false) entered
[java] [Server@186db54]: [Thread[main,5,main]]: checkRunning(false) exited
[java] [Server@186db54]: Startup sequence initiated from main() method
[java] [Server@186db54]: Loaded properties from [C:\!downloads\Hibernate\jpwh-gettingstarted-070401\helloworld-native\server.properties]
[java] [Server@186db54]: Initiating startup sequence...
[java] [Server@186db54]: Server socket opened successfully in 20 ms.
[java] Exception in thread "HSQLDB Server @186db54" java.lang.NoClassDefFoundError
[java] at org.hsqldb.Database.reopen(Unknown Source)
[java] at org.hsqldb.Database.open(Unknown Source)
[java] at org.hsqldb.DatabaseManager.getDatabase(Unknown Source)
[java] at org.hsqldb.DatabaseManager.getDatabase(Unknown Source)
[java] at org.hsqldb.Server.openDatabases(Unknown Source)
[java] at org.hsqldb.Server.run(Unknown Source)
[java] at org.hsqldb.Server.access$000(Unknown Source)
[java] at org.hsqldb.Server$ServerThread.run(Unknown Source)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 25, 2008 7:41 pm 
Newbie

Joined: Tue Feb 19, 2008 2:30 pm
Posts: 10
I had JDK1.5.0_01 installed previously. I now installed JDK1.6.0_06. Now when I execute:
Code:
java -cp hsqldb.jar org.hsqldb.Server
, the HSQL Database Server starts fine.

However, when I run:
Code:
ant startdb
, I still get the same NoClassDefFound error message.

Please advise! Thank you.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 25, 2008 8:20 pm 
Newbie

Joined: Tue Feb 19, 2008 2:30 pm
Posts: 10
When I changed the PATH and JAVA_HOME environmental variables to point to the new JDK (1.6.0_06), the error messages disappeared.

So, the bottom line is, HSQLDB as well as some Hibernate packages are not compatible with JDK1.5 and needed JDK1.6. Please correct me if I am wrong.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 26, 2008 5:04 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
of course they are compatible with JDK1.5,
you probably had some mismatch with PATH and JAVA_HOME versions

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.