I can run .jar files through cmd, but I cannot double click them

后端 未结 6 900
星月不相逢
星月不相逢 2020-11-29 09:52

First, I am studying Java, but I am still very new to it, so complicated code will go over my head.

When I download a .jar file to say install a mod to minecraft and

6条回答
  •  情深已故
    2020-11-29 10:14

    Just to reiterate - Meghan's answer fixed my problem of not being able to double-click to start a jar in Windows 7.

    • Open Registry editor

    • Navigate to HKEY_CLASSES_ROOT->jarfile->shell->open->command

    • Modify (Default) to "[Path to working JRE]/bin/javaw.exe" -jar "%1" %*

    • Make sure .jar files are opened by [Path to working JRE]/bin/javaw.exe by default

提交回复
热议问题