Run JUnit tests with Java 1.5 in EAP 10762
When I updated to Idea EAP 10762 and tried to run a JUnit test, I got the exception:
"Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file" at com.intellij.rt.execution.application.AppMain.main(AppMain.java:87)
I switched from using Java 5 to Java 6 for the project, tried again and it worked.
I need to use Java 5 for my project. What should I do? Is it a known problem (bug)?
Please sign in to leave a comment.
Hello Andrey,
Yes, this is a known problem which is already fixed and the fix will be included
in the next EAP.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"