Exception in thread "main" java.lang.UnsupportedClassVersionError: org/yccheok/jstock/gui/MainFrame : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: org.yccheok.jstock.gui.MainFrame. Program will exit.
1.0.7.L is starting well. Beginning with 1.0.7.m the posted error above is coming.
I am using the Linux .jar File under ecomstation 2.1 and java 1.6.27
I found the reason for this error.
The code is compiled for JAVA 1.7 but I have only JAVA 1.6 JRE on ecomstation (former OS/2).
Is it possible to compile the code for JAVA 1.6?
Hi warpwe,
Thanks for your information, I am using gentoo 64-bit version, I cannot run jstock some times with the above error, after compiling java 1.7, everything works.
For others using gentoo 64-bit with the above error, you may try to install icedtea v7 and modify the JAVA_HOME in jstock.sh to execute it
Thanks!
Kenneth