Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

"Unsupported major.minor version 51.0"

Knut Arne VedaaDec 1 2011 — edited Dec 1 2011
I get the following exception when I try to run an application (on another machine then my developer machine):

Exception in thread "main" java.lang.UnsupportedClassVersionError: notifytexts/N
otifyTexts : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.javafx.main.Main.getAppClass(Main.java:409)
at com.javafx.main.Main.launchApp(Main.java:435)
at com.javafx.main.Main.main(Main.java:567)

My first idea was that it was caused by different JavaFX versions, i.e. it's compiled with 2.0.1 but the other machine only has 2.0 installed, but it remains after being compliled with 2.0 as well.

Another application works fine on the same machine.

What I'm sort of wondering is, is this related to JavaFX at all, or is there something else going on?
This post has been answered by zonski on Dec 1 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 29 2011
Added on Dec 1 2011
2 comments
2,704 views