Note that there are some explanatory texts on larger screens.

plurals
  1. POJava error, please help me out
    primarykey
    data
    text
    <blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/1525960/unsupported-major-minor-version-49-0">Unsupported major.minor version 49.0</a> </p> </blockquote> <p>Alright guys, I just installed JDK 7, and I'm on windows 7. I'm just trying to get a simple "hello world" to compile and run, which I copied from somewhere because I don't know exactly what I'm doing yet. I've set up the PATH already, and when I use javac I think it compiles without giving an error but when I try to run it, I get:</p> <pre><code>Exception in thread "main" java.lang.UnsupportedClassVersionError: apples : Unsu pported 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 sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) Could not find the main class: apples. Program will exit. </code></pre> <p>Don't know if that helps any lol but thanks for anyone who knows whats going on here.</p> <p>java version "1.6.0_31" Java(TM) SE Runtime Environment (build 1.6.0_31-b05) Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)</p> <p>javac 1.7.0_04</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload