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!