-->
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: Install Hibernate - Unsupported major.minor version 49.0
PostPosted: Wed Dec 14, 2005 2:46 pm 
Newbie

Joined: Wed Dec 14, 2005 12:50 pm
Posts: 3
I am facing the following error: Hibernate is not working with JDK 1.4


Hibernate version: 3.0 (2005-12-14 07:41:25)

database: MSACCESS 2003

Exception below:

Code:
C:\hibernate-3.0>build

C:\hibernate-3.0>set JDBC_DRIVER=jdbc/hsqldb.jar

C:\hibernate-3.0>java -cp "lib/ant-launcher-1.6.3.jar" org.apache.tools.ant.launch.Launcher -lib lib -Ddriver.jar=j
dbc/hsqldb.jar
Buildfile: build.xml
  [taskdef] Could not load definitions from resource checkstyletask.properties. It could not be found.
  [taskdef] Could not load definitions from resource clovertasks. It could not be found.

splash:

init:
     [echo] Build Hibernate-3.0 (2005-12-14 07:41:25)
     [echo] JDK version: 1.4

init.antlr:

antlr:

compile:
    [javac] Compiling 827 source files to C:\hibernate-3.0\build\classes

BUILD FAILED
java.lang.UnsupportedClassVersionError: com/sun/tools/javac/Main (Unsupported major.minor version 49.0)

Total time: 10 seconds

C:\hibernate-3.0>

_________________
Vilas Menon
Consultant
WIPRO technologies


Top
 Profile  
 
 Post subject: Re: Install Hibernate - Unsupported major.minor version 49.0
PostPosted: Wed Dec 14, 2005 2:47 pm 
Newbie

Joined: Wed Dec 14, 2005 12:50 pm
Posts: 3
vilasm wrote:
I am facing the following error: Hibernate is not working with JDK 1.4

Please help.

Hibernate version: 3.0 (2005-12-14 07:41:25)

database: MSACCESS 2003

Exception below:

Code:
C:\hibernate-3.0>build

C:\hibernate-3.0>set JDBC_DRIVER=jdbc/hsqldb.jar

C:\hibernate-3.0>java -cp "lib/ant-launcher-1.6.3.jar" org.apache.tools.ant.launch.Launcher -lib lib -Ddriver.jar=j
dbc/hsqldb.jar
Buildfile: build.xml
  [taskdef] Could not load definitions from resource checkstyletask.properties. It could not be found.
  [taskdef] Could not load definitions from resource clovertasks. It could not be found.

splash:

init:
     [echo] Build Hibernate-3.0 (2005-12-14 07:41:25)
     [echo] JDK version: 1.4

init.antlr:

antlr:

compile:
    [javac] Compiling 827 source files to C:\hibernate-3.0\build\classes

BUILD FAILED
java.lang.UnsupportedClassVersionError: com/sun/tools/javac/Main (Unsupported major.minor version 49.0)

Total time: 10 seconds

C:\hibernate-3.0>

_________________
Vilas Menon
Consultant
WIPRO technologies


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 14, 2005 3:01 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
why are you using jdk 5 libraries with your jdk 1.4 compiler ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 14, 2005 3:26 pm 
Newbie

Joined: Wed Dec 14, 2005 12:50 pm
Posts: 3
Thanks a Zillion. Downloaded old version of Jsdk 1.4.2 and it worked now. Did not realise that I was using jdk 5 libraries. Thats the only one available for download at the sun website. Anyways my problems sorted, Ta. Cheers!!


max wrote:
why are you using jdk 5 libraries with your jdk 1.4 compiler ?

_________________
Vilas Menon
Consultant
WIPRO technologies


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.