Hi, I looked for this on Google, but to no success.

Can anyone help/point me in the right direction as to how include a terminal window in an exectuable jar file??

Outside the IDE, I can only access my program by command promt, Im not fussed about layout, I just need what appears in the command promt window to be in a terminal window in a jar file.

Any help or examples of what im trying to do pleaseee

Recommended Answers

All 3 Replies

Are you're referring to the fact that when you double-click a jar file, there is no command window shown?

yes I think I am

I have a main method

(no GUI class)

You need to run that jar from the command prompt with java -jar MyApp.jar . Double-clicking the jar file runs it with "javaw", which has no visible command window.
You can make a batch program or a shortcut to run the java command if you need something to click to run.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.