nitish_mythology
OSS Enthusiast!
I am coding in JCreator(Windows) and now I want to execute the class file in Linux..
Dont know exactly if I have jdk or jre insatlled..
Here is the output of java -version
This is what i did to execute the java ByteCode
Do i need to secify path?? I am already working in the directory that contains the class file.
PS:I hope the section is correct! Mayb it shd have been in Open Source!
Dont know exactly if I have jdk or jre insatlled..
Here is the output of java -version
nitish@Nitish:~$ java -version
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 (Ubuntu 4.1.2-0ubuntu5)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This is what i did to execute the java ByteCode
nitish@Nitish:~/Development$ java linear
Exception in thread "main" java.lang.ClassFormatError: linear (unrecognized class file version)
at java.lang.VMClassLoader.defineClass(libgcj.so.70)
at java.lang.ClassLoader.defineClass(libgcj.so.70)
at java.security.SecureClassLoader.defineClass(libgcj.so.70)
at java.net.URLClassLoader.findClass(libgcj.so.70)
at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.70)
at java.lang.ClassLoader.loadClass(libgcj.so.70)
at java.lang.ClassLoader.loadClass(libgcj.so.70)
at gnu.java.lang.MainThread.run(libgcj.so.70)
Do i need to secify path?? I am already working in the directory that contains the class file.
PS:I hope the section is correct! Mayb it shd have been in Open Source!
Last edited: