|
Problem with executing .jar files
Hi Everyone,
I'm developing using NetBeans 5.5 on Ubuntu Linux 7.04. Whenever I attempt to execute the Java applications I have developed directly from the Linux terminal (by executing the .jar file) I get an error. The following error appeared when I attempted to execute a simple HelloWorld application. Error is always the same.
hiranya@hiranya-homepc:~$ java -jar "/home/hiranya/projects/netbeans/HelloWorld/dist/HelloWorld.jar"
Exception in thread "main" java.lang.ClassFormatError: helloworld.Main (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)
hiranya@hiranya-homepc:~$
Please enlighten me on what's going on and possible workarounds.
Thank you
Regards,
Hiranya
|