JUnit does not run with JDK5 because it is compiled with JDK 6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
junit (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
JUnit in Intrepid is compiled with JDK 6. It fails to run with JDK 5, which is included in Intrepid too.
Steps to reproduce:
1. Make java-1.5.0-sun JDK active.
2. Execute java -cp /usr/share/
The result is:
Exception in thread "main" java.lang.
at java.lang.
at java.lang.
at java.security.
at java.net.
at java.net.
at java.net.
at java.security.
at java.net.
at java.lang.
at sun.misc.
at java.lang.
at java.lang.
The strange thing is that the original source can be compiled with java 1.4.2.
So why does the version in Interped enforce java 6?
http:// ftp.de. debian. org/debian/ pool/main/ j/junit/ junit_3. 8.2.orig. tar.gz