How do I make my java application open a console/terminal window?

前端 未结 13 1370
日久生厌
日久生厌 2020-12-28 21:12

Is there any way I can make an executable .jar that will open up the command line when double clicked?

I\'m making a text-based adventure game. As of right now it is

13条回答
  •  Happy的楠姐
    2020-12-28 21:54

    As long as the .jar is executed with java.exe, a commandline window will always show up. executing it with javaw.exe would prevent this.

    for further reading: http://download.oracle.com/javase/1.4.2/docs/tooldocs/windows/java.html

提交回复
热议问题