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

前端 未结 13 1402
日久生厌
日久生厌 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条回答
  •  感动是毒
    2020-12-28 21:53

    I found another way ... for example for project myproject with a class foo in package bar :

    java -cp myproject.jar; bar.foo
    

提交回复
热议问题