| java.lang.UnsupportedClassVersionError: junit/textui/TestRunner (Unsupported major.minor version 49. [message #227757] |
Thu, 13 April 2006 13:27  |
Eclipse User |
|
|
|
Originally posted by: codeslave.ca.ibm.com
Since moving up to the latest Eclipse I driver
( http://download.eclipse.org/eclipse/downloads/drops/I2006041 2-2041/eclipse-SDK-I20060412-2041-linux-gtk.tar.gz),
our EMF Standalone JUnit tests are now failing to run. The Eclipse N
driver from two days before, N20060410-0010, did not have this problem.
http://emf.torolab.ibm.com/tools/emf/jdk14tests/2.2.0/N20060 4130040/200604130053/testlog.txt
If I'm not mistaken
( http://www.artima.com/forums/flat.jsp?forum=1&thread=108 274,
http://forum.java.sun.com/thread.jspa?threadID=667600&me ssageID=3932387
- see 2nd reply), this means that the latest version of TestRunner is
built with JDK1.5, and output as JDK1.5 target, too
( http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/javac.h tml - see
Cross-Compilation Options), instead of 1.4 as it was a few days ago.
I've been able to reproduce this problem outside out build environment
(on my home machine) using this script:
http://dev.eclipse.org/viewcvs/indextools.cgi/emf-home/emf-b uild/scripts/runJDK14Tests.sh
And yet, curiously, when I run these tests inside Eclipse using the UI
(Run As > JUnit Test), everything works fine (268 of 268 tests pass). Of
course within Eclipse the JUnits are running as
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner, not
junit.textui.TestRunner.
Steps to reproduce:
0. In a clean Eclipse (SDK) + EMF (SDK) install,
1. Check out all plugins under /cvsroot/tools/org.eclipse.emf/tests/,
2. Browse to org.eclipse.emf.test.build/ src/
org.eclipse.emf.test.build/ StandAloneSuites.java,
3. Right-click, "Run As > JUnit Test" using IBM JDK 1.4sr4-1 (20060209)
What can be done about this problem?
Thanks,
Nick Boldt
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03521 seconds