I've produced a jar file but it won't be run when double click on it. It can be run by using netbeans or cmd. I'm using windows 10 with JDK & JRE 1.8.0_92, I had defaulted jar file to run by javaw.exe under JRE. Kindly advise.
uninstall your JRE, run a registry cleaner (I like CCLEANER for this) until your registry is clean, then reboot, and install the JRE again. That should give you the correct associations.