I have built an executable jar file using netbeans IDE, it works fine in my system but yesterday I gave it to my friend and he is complaining that the file is not running, it just show the splash screen and then closes, he has JRE 6 installed.
I am unable to resolve the issue. Can someone help?
The problem is, you build the jar using JDK7 and you want to run it on JDK6. It will become error. Try to downgrade and build jar again using JDK6.
Right-Click on your project properties and select
Librariesand change the Java Platform.If the JDK6 didn’t come out, please make sure to add it from
Tools > Java PlatformsandAdd Platform...