-->
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.  [ 2 posts ] 
Author Message
 Post subject: Help from a Newbie !!!
PostPosted: Tue Jul 18, 2006 12:25 am 
Newbie

Joined: Tue Jul 18, 2006 12:15 am
Posts: 1
hi guys, this is my first time to learn Hibernate..

I followed carefully every steps/tutorial from this site: http://www.gloegl.de/8.html

but when I tried to compile, it shows an error msg exactly as shown below, it says that I have a wrong version of org.hibernate.SessionFactory.class

Code:
D:\Java\hibernate-3.1>compile.bat

D:\Java\hibernate-3.1>javac -classpath .\lib\hibernate3.jar -d bin src\de\gloegl\road2hibernate\*.java src\de\gloegl\road2hibernate\EventManager.java:3: cannot access org.hibernate.SessionFactory

bad class file: .\lib\hibernate3.jar(org/hibernate/SessionFactory.class)
class file has wrong version 48.0, should be 47.0

Please remove or make sure it appears in the correct subdirectory of the classpath.

import org.hibernate.SessionFactory;
                     ^
1 error

D:\Java\hibernate-3.1>copy /Y src\hibernate.cfg.xml bin
        1 file(s) copied.

D:\Java\hibernate-3.1>copy /Y src\de\gloegl\road2hibernate\*.xml bin\de\gloegl\r
oad2hibernate
src\de\gloegl\road2hibernate\Event.hbm.xml
The system cannot find the path specified.
        0 file(s) copied.

D:\Java\hibernate-3.1>


thanks for the help!

_________________
Great $alary comes with great responsibility


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 18, 2006 5:46 am 
Beginner
Beginner

Joined: Wed Aug 10, 2005 12:09 am
Posts: 30
maybe you need to use older hibernate 3.0 jars


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