DrAske
asked on
JDK 1.4 with JUnit
Hello Experts..
I am trying to run JUnit 3.8.1 with JDK 1.4 but I am getting the following exception:
java.lang.UnsupportedClass VersionErr or: com/ibm/testdatagenerator/ AllTests (Unsupported major.minor version 50.0)
at java.lang.ClassLoader.defi neClass0(N ative Method)
at java.lang.ClassLoader.defi neClass(Cl assLoader. java:539)
at java.security.SecureClassL oader.defi neClass(Se cureClassL oader.java :123)
at java.net.URLClassLoader.de fineClass( URLClassLo ader.java: 251)
at java.net.URLClassLoader.ac cess$100(U RLClassLoa der.java:5 5)
at java.net.URLClassLoader$1. run(URLCla ssLoader.j ava:194)
at java.security.AccessContro ller.doPri vileged(Na tive Method)
at java.net.URLClassLoader.fi ndClass(UR LClassLoad er.java:18 7)
at java.lang.ClassLoader.load Class(Clas sLoader.ja va:289)
at sun.misc.Launcher$AppClass Loader.loa dClass(Lau ncher.java :274)
at java.lang.ClassLoader.load Class(Clas sLoader.ja va:235)
at org.eclipse.jdt.internal.j unit.runne r.RemoteTe stRunner.l oadClass(R emoteTestR unner.java :683)
at org.eclipse.jdt.internal.j unit.runne r.RemoteTe stRunner.l oadClasses (RemoteTes tRunner.ja va:425)
at org.eclipse.jdt.internal.j unit.runne r.RemoteTe stRunner.r unTests(Re moteTestRu nner.java: 445)
at org.eclipse.jdt.internal.j unit.runne r.RemoteTe stRunner.r unTests(Re moteTestRu nner.java: 673)
at org.eclipse.jdt.internal.j unit.runne r.RemoteTe stRunner.r un(RemoteT estRunner. java:386)
at org.eclipse.jdt.internal.j unit.runne r.RemoteTe stRunner.m ain(Remote TestRunner .java:196)
any idea how to fix this? or what version of JUnit can run with JDK 1.4?
I am trying to run JUnit 3.8.1 with JDK 1.4 but I am getting the following exception:
java.lang.UnsupportedClass
at java.lang.ClassLoader.defi
at java.lang.ClassLoader.defi
at java.security.SecureClassL
at java.net.URLClassLoader.de
at java.net.URLClassLoader.ac
at java.net.URLClassLoader$1.
at java.security.AccessContro
at java.net.URLClassLoader.fi
at java.lang.ClassLoader.load
at sun.misc.Launcher$AppClass
at java.lang.ClassLoader.load
at org.eclipse.jdt.internal.j
at org.eclipse.jdt.internal.j
at org.eclipse.jdt.internal.j
at org.eclipse.jdt.internal.j
at org.eclipse.jdt.internal.j
at org.eclipse.jdt.internal.j
any idea how to fix this? or what version of JUnit can run with JDK 1.4?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
@CEHJ : thanx, that did the trick :) but could you please tell me how did you know from the exception stacktrace that I am using 1.6 ?
>>but could you please tell me how did you know from the exception stacktrace that I am using 1.6 ?
By the class version number
By the class version number
http://junitext.sourceforge.net/index.html