problem with java in fedora 7
hi everyone
i have installed jdk 1.6 in fedora 7..
i am able to compile a program without any errors....but when i use the
command
java ClassName
i am getting the following error...
Exception in thread "main" java.lang.ClassFormatError: JFrameProgram (unrecognized class file version)
at java.lang.VMClassLoader.defineClass(libgcj.so.8rh)
at java.lang.ClassLoader.defineClass(libgcj.so.8rh)
at java.security.SecureClassLoader.defineClass(libgcj.so.8rh)
at java.net.URLClassLoader.findClass(libgcj.so.8rh)
at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.8rh)
at java.lang.ClassLoader.loadClass(libgcj.so.8rh)
at java.lang.ClassLoader.loadClass(libgcj.so.8rh)
at gnu.java.lang.MainThread.run(libgcj.so.8rh)
I have set the environmental variable JAVA_HOME /home/fedora/jdk1.6.0
is there any conflict between the jdk that i have installed and the default java that has come with fedora 7...
if so how to rectify this conflict....??
Please help me to compile programs in terminal in fedora 7
THANKS IN ADVANCE
Last edited by me4linux; 09-07-2007 at 09:31 PM.
|