I'm having problems distributing an application. While the .jar file runs perfectly on my own pc, it doesn't work when I run it on another machine. I got the "couldn't find main class" message everytime I try to run it by double-clicking on it. If I try to execute it from command line (using java -jar) the message I got is "unsupported major.minor version 50.0".
I verified the MANIFEST.NF file is configured correctly, so I don't understand.
I'm using NetBeans 6.8 as IDE, and java 1.6 on Windows XP.
Any help will be appreciated, thanks.
PS: I'm not a native English speaker, so excuse (and point) any mistakes
> I'm using NetBeans 6.8 as IDE, and java 1.6 on Windows > XP.
I think the reason is that your jar file will only work on machines that are running java version 1.6. If the other PCs are running Java 1.5 then you need to make sure that your code is compiled to run using 1.5.
I don't use NetBeans but I would expct that there is a project setting that you can change, to target 1.5.