I could install Java on my machine. The moment I try to compile and run a program I face a proeblem. The program gets complied and a (.class) file is being craeted propely. But when I try to run it, I face the following problem.
C:\Documents and Settings\Deepa_Philu>d:
D:\Deepa>de javatest 'de' is not recognized as an internal or external command, operable program or batch file.
D:\Deepa\JAVATEST>javatest Exception in thread "main" java.lang.UnsupportedClassVersionError: test (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) Can anyone please help me out with this? I would be greatful.
This error comes when there is a difference between compiler compliance level and JRE level. i.e. if you have compiled the code with JDK1.5 and you are trying to execute your class in the JRE 1.4.Check your path and classpath settings.
Be Objectively Oriented.Explore the power of OOPs.
My Blog, Eclipse EMF Query committer.