Originally posted by Lasse Koskela: This sounds like one of your dependencies expects to see JUnit 4 and you've got JUnit 3.8 in your classpath.
Why would that get you a "Unsupported major.minor version 49.0"?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
This means that junit.framework.Test was compiled against Java 5, but you are running with a lower version of the JDK/JRE. Check to see what version of Java your machine thinks it is using.
I am getting same compile error message. I am using apache-ant-1.6.2 and JDK1.4.
junit.framework.Test - my app is not using Junit, so does it means one of the jar (dependency) is having Junit which is compiled with higher version or does it means apache-ant having Junit is compiled with higher version of JDK?
apache-ant-1.6.2 is having Junit4.1.jar & junit.jar dated with year 2010.