Cannot execute Java program: UnsupportedClassVersionError
- by Ricko Devian
I have installed JDK 6, but I can't execute a Java program.
For example, I have made test.java. I compile it with javac tes.java and there's no error when I compile it, but when I want to execute that program it always displays an error. I execute the Java program with java tes.
Exception in thread "main"…