解决在Windows下双击.jar文件不能运行的方法
在Windows注册表添加
[HKEY_CLASSES_ROOT/jar_auto_file/shell/open/command]@="/"c://j2sdk1.4.2_12//jre//bin//javaw.exe/" -jar /"%1/""
[HKEY_CLASSES_ROOT/.jar]@="jar_auto_file"
[HKEY_CURRENT_USER/Software/Mic-rosoft/Windows/CurrentVersion/Explorer/FileExts/.MP3/OpenWithList]@="jar_auto_file"