.jar window immediately closes on doubleclick
If you have previously used the right click and opened with pathtoyourjavaw.exe then you will need to remove the following registry key.
[-HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.jar]
Then run
C:>assoc .jar=jarfile
C:>ftype jarfile="C:pathtoyourjavaw.exe" -jar "%1" %*