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

前端 未结 13 1400
日久生厌
日久生厌 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:58

    You could create your own window, using Swing or Awt, using a TextPane, the only problem... is how to input and use like the cmd should do. But you can always do this with alerts and all...

    Other way, is running directly from a batch file, showing on the console.

    You should consider too, make your game DIRECTLY on batch... is not a bad language to make and is present on every Windows Operating Systems.

    (Hope was useful ('cause i'm new), and my english was not THAT BAD...)

提交回复
热议问题