What java version is needed for JUnit 4.8

Posted by Jens Schauder on Stack Overflow See other posts from Stack Overflow or by Jens Schauder
Published on 2010-04-29T13:36:41Z Indexed on 2010/04/29 13:47 UTC
Read the original article Hit count: 261

Filed under:
|
|

I am trying to run JUnit test with a 1.5 JRE, but get the error Message:

java.lang.UnsupportedClassVersionError: Bad version number in .class file

When I switch to JRE 1.6 (actually a JDK but that shouldn't matter, right?) everythings works fine.

So the questions are:

  • Do we really need Java 6 for the current JUnit version?
  • what is the newest JUnit version, that works with Java 5?

© Stack Overflow or respective owner

Related posts about junit

Related posts about java