Double click .jar file to execute in windows

Execute following script with admin privilege.

assoc .jar=jarfile
ftype jarfile="C:\DevTools\jrex86\bin\javaw.exe" -jar "%%1" %%*

Link