How to open/run .jar file (double-click not working)?

前端 未结 15 1152
陌清茗
陌清茗 2020-12-15 17:26

I can\'t open or run my .jar file.

I just installed java, but I tried to open the .jar with other programs first, so the double-click defaults to something else and

15条回答
  •  甜味超标
    2020-12-15 17:49

    Use cmd prompt and type

    java -jar exapmple.jar
    

    To run your jar file.

    for more information refer to this link it describes how to properly open the jar file. https://superuser.com/questions/745112/how-do-i-run-a-jar-file-without-installing-java

提交回复
热议问题