TestPlan Java Compatibility

Asked by mike ajamie

Hi. I looked thru the online install instructions... But, I was unable to find Java version compatibility. I'd greatly appreciate any help. Can anybody provide compatible java versions for TestPlan? I got an error like this:

C:\testplan\bin>testplan.bat --version
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)

C:\testplan\bin>echo %TESTPLANROOT%

C:\testplan\bin>echo %JAVA_HOME%
C:\Program Files\Java\jre1.5.0_10

C:\testplan\bin>java -version
java version "1.5.0_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
Java HotSpot(TM) Client VM (build 1.5.0_10-b03, mixed mode)


Sincere thanks,


Question information

English Edit question
TestPlan Edit question
No assignee Edit question
Solved by:
mike ajamie
Last query:
Last reply:
Revision history for this message
edA-qa (eda-qa) said :

We've only ever compiled at test with Java 6. I don't think we need a specific update in Java 6, but tests are usually run with the latest. Though my dev box hasn't upgraded Java in a couple of years.

You could try to compile and run the tests in Java 5, though I suspect you might encounter some problems (I recall there are things from Java 6 that we do use).

Revision history for this message
mike ajamie (mjajamie) said :