Running JAR file on Windows

前端 未结 25 2780
故里飘歌
故里飘歌 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:48

    If you have a jar file called Example.jar, follow these rules:

    1. Open a notepad.exe
    2. Write : java -jar Example.jar
    3. Save it with the extension .bat
    4. Copy it to the directory which has the .jar file
    5. Double click it to run your .jar file

提交回复
热议问题