Hello,
I don't know if I am in the correct section of forum, but I will try it here.
I have ubuntu 8.04.
I am trying to run java program from ntfs partition (windows).
If am running it through ubuntu (java -jar program.jar) and I got following:
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
But version JRE and JDK where program was compiled is the same.
If I try to run it from NetBeans6.1 I got following:
Exception in thread "main" java.lang.NoClassDefFoundError: core/Main
BUT!!!
If I copy program.jar on linux partition, it is running correctly in ubuntu and in netbeans also.
How to solve this kind of problem?
Thank you.



Adv Reply
Bookmarks