This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HSQLDB Installation

 
SOK Pongsa Metrey SOK
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I just finish install Junit 3.8.1 then I want to install hsqldb 1.8.0.4.
I have followed the document that attache with the installation folder but I can't build it.

When I type: on command prompt with

ant jar

The Err is:

java.lang.UnsupportedClassVersionError: junit/framework/Test (Unsupported major.minor version 49.0)

The programs, I use are apache-ant-1.6.5, Junit 3.8.1, hsqldb 1.8.0.4.
I just want to follow the Ebook: Agile Java Developement with Spring, Hibernate and Eclipse.

Who have any idea to help me with those problems?

Sorry, if I wrote with not clear info.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This sounds like one of your dependencies expects to see JUnit 4 and you've got JUnit 3.8 in your classpath.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Lasse Koskela:
This sounds like one of your dependencies expects to see JUnit 4 and you've got JUnit 3.8 in your classpath.


Why would that get you a "Unsupported major.minor version 49.0"?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34681
367
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by SOK Pongsa Metrey SOK:
java.lang.UnsupportedClassVersionError: junit/framework/Test (Unsupported major.minor version 49.0)

This means that junit.framework.Test was compiled against Java 5, but you are running with a lower version of the JDK/JRE. Check to see what version of Java your machine thinks it is using.
 
Shiva.Om Kumar
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky wrote:
Originally posted by SOK Pongsa Metrey SOK:
java.lang.UnsupportedClassVersionError: junit/framework/Test (Unsupported major.minor version 49.0)

This means that junit.framework.Test was compiled against Java 5, but you are running with a lower version of the JDK/JRE. Check to see what version of Java your machine thinks it is using.


I am getting same compile error message. I am using apache-ant-1.6.2 and JDK1.4.

junit.framework.Test - my app is not using Junit, so does it means one of the jar (dependency) is having Junit which is compiled with higher version or does it means apache-ant having Junit is compiled with higher version of JDK?

apache-ant-1.6.2 is having Junit4.1.jar & junit.jar dated with year 2010.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic