java - Run eclipse project in cmd -


this question has answer here:

i have console project in eclipse.

i want configure eclipse open windows command prompt window instead of own console. cmd window must run project , input , output instead of eclipse console window.

this easy in c#.

how do this?

if console-based application, merely opening executable jar file should make run in command prompt. can done typing

java -jar "<drive>:\path\to\jar.jar" 

into cmd window. program run if in eclipse console, except in cmd. using batch file, can alter cmd with

color 0a 

as example.

if looking more of user-friendly console-based application, can name of executable jar , have run in processbuilder inside source code itself. allows jar open in cmd.

if have not specified correctly, let me know.


Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -