permaculture playing cards*
The moose likes Testing and the fly likes HSQLDB Installation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "HSQLDB Installation" Watch "HSQLDB Installation" New topic
Author

HSQLDB Installation

SOK Pongsa Metrey SOK
Greenhorn

Joined: Jul 27, 2006
Posts: 2
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
This sounds like one of your dependencies expects to see JUnit 4 and you've got JUnit 3.8 in your classpath.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
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"?


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30762
    
156

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Shiva.Om Kumar
Ranch Hand

Joined: Jun 14, 2010
Posts: 68
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HSQLDB Installation