Results 1 to 1 of 1
hi, how are you.I have some question and i think
you can help me.
I intalled jdk1.6 on linux.I have set the environment varible.
I made a program named Test.java.
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-26-2011 #1Just Joined!
- Join Date
- Jan 2011
- Posts
- 15
Linux runtime error
hi, how are you.I have some question and i think
you can help me.
I intalled jdk1.6 on linux.I have set the environment varible.
I made a program named Test.java.
Its successfully compiling with command javac Test.java.
but it is giving me error while running with java Test.
public class Test{
public static voiid main(String args[]){
System.out.println('Hello');
}
}
Exception in thread "main" java.lang.ClassFormatError: Test (unrecognized class file version)
at java.lang.VMClassLoader.defineClass(libgcj.so.7rh)
at java.lang.ClassLoader.defineClass(libgcj.so.7rh)
at java.security.SecureClassLoader.defineClass(libgcj .so.7rh)
at java.net.URLClassLoader.findClass(libgcj.so.7rh)
at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj .so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at gnu.java.lang.MainThread.run(libgcj.so.7rh)
Please tell me how can


Reply With Quote
