readthefuckingmanual.net

[SOLVED] java.lang.UnsupportedClassVersionError

Error added: 2007-03-31T12:55:09Z

1 people waiting for the answer...

1 answers found.

Answer 286 (0.0% helpful)

The class file you\'re trying to run was compiled by one of the Java 5 versions. (Java 5 creates class files with an internal id of 49.) The 1.4.0 JVM doesn\'t know how to read/use/run the more recent Java 5 (1.5) version file.

How did this happen? either someone gave you a Java 5 class file, or you have multiple Java versions installed in your machine.

Make sure that the JVM you use for execution is at least as new as the version of javac that was use for compilation.
Permalink

Add an answer/solution

If you know the answer, please add your own solution below.
If you don't know, but find out later, please come back and share your answer - there will be other people struggling with this too.


Please enter 61948 here

If you want to be notified via email when this is solved, enter your email address here: