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)?

0
1 comment

Hello Andrey,

Yes, this is a known problem which is already fixed and the fix will be included
in the next EAP.

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)?

---
Original message URL:
http://www.jetbrains.net/devnet/message/5245141#5245141

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.