I compiled many code-examples from the java tutorials with the Java-Compiler.
They run fine, when I start them from the Console.
Then I made batchfiles and tried to start them from the Windows Explorer. (I use Windows Vista)
But I keep getting the same error message:
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad versionnumber in .class file
Is there anything, that I can do?
Yes, that must be the problem.
I have the SDK of Version 1.6.0_06 installed.
Previously, I installed java 1.5.
But I found I way to start the java Class-file correctly.
I have to change the path variable to the directory of the bin-files from java, then the Programm will start.