Running JAR file on Windows

前端 未结 25 2136
故里飘歌
故里飘歌 2020-11-22 01:57

I have a JAR file named helloworld.jar. In order to run it, I\'m executing the following command in a command-line window:



        
相关标签:
25条回答
  • 2020-11-22 02:49

    Another way to run jar files with a click/double-click, is to prepend "-jar " to the file's name. For example, you would rename the file MyJar.jar to -jar MyJar.jar.

    You must have the .class files associated with java.exe, of course. This might not work in all cases, but it has worked most times for me.

    0 讨论(0)
提交回复
热议问题