I dont seem to be able to start it with console via run-as. In the drop-down menu I have "Java(TM) Platform SE Binary"; when I click that, nothing happens. The application does not start.
Double...
Type: Posts; User: Cornix
I dont seem to be able to start it with console via run-as. In the drop-down menu I have "Java(TM) Platform SE Binary"; when I click that, nothing happens. The application does not start.
Double...
Exactly that is the problem why I want that command prompt to open in the first place. Try to tell somebody who is not tech-savvy how to start a java application via command prompt if that java...
A custom implementation of the command line would of course always be another option. But I would have really appreciated if there was some simple way. Its funny that this is such a difficult problem...
But I would like to make my output to the input of the process.
Like:
System.setOut(process.getInputStream());
With the intention that any further print commands would print to the command...
When I try that my IDE (Eclipse) gives me the following error:
So I am pretty sure it wouldnt work that way.
Well, I dont know either. But if there is a way I would sure like to know.
Did that too, since the "setOut" method needs a printStream. You can not just set it to the output stream returned by process.getOutputStream().
Thanks for the quick response. I tried that already and it didnt work. I couldnt read any input and outputs where not displayed in the command prompt. But thanks anyways.
Hi.
In my application I open a command line window with the following code:
try {
Runtime.getRuntime().exec(new String[] {"cmd.exe", "/C", "\"start; cd c:\\\""});
} catch (IOException e)...