I\'m trying to compile my programs using the command prompt on Windows 7. I\'m having a problem when I during compile. I created a test program:
class test
{
It seems your JDK and JVM have different editions.
You are using different versions of JDK. Check the versions on your javac vs java. This error is telling you that your java and compiled class are not same versions. Check your path for configuration, type "set" in dos to see details.
Example: If you compiled your class with javac (version 7) and execute it with java (version 6)