Hi all im gettin an error on running a code, i ws doin
java ntwk tried to run it and i got
Exception in
thread "main" java.lang.UnsupportedClassVersionError: HELLO (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
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$100(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)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
so i decided to make a simplest java code which prints hello world
below is that code -
class HELLO
{
public static void main(
String[] args)
{
System.out.println("Hello World!");
}
}
and it gave the same error above.
All help would be appreciated thanks.
thanks
Avneet