java runtime error
Akrem Gassoumi
gassoumi.akrem.ensi at gmail.com
Fri Aug 15 12:21:55 UTC 2014
Hi there ,
I am starting with java learning and by testing the examples you mentionned
in "jls8-diif.pdf" page 44 and instead of an output "
-727379968
1000000000000
"
here what i got instead ,
Exception in thread "main" java.lang.UnsupportedClassVersionError: Test0 :
Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:643)
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:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
Could not find the main class: Test0. Program will exit.
====So any help , i tried to google it but in vain still no solution
PS: Test0 is the name of my class
--
GasAkrem
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20140815/91cb4225/attachment.html>
More information about the compiler-dev
mailing list