📜  .jar 窗口在双击时立即关闭 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:24.143000             🧑  作者: Mango

代码示例1
If you have previously used the right click and opened with \path\to\your\javaw.exe then you will need to remove the following registry key.

[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jar]

Then run

C:\>assoc .jar=jarfile
C:\>ftype jarfile="C:\path\to\your\javaw.exe" -jar "%1" %*