Results 1 to 3 of 3
Thread: Launch External Console app
- 12-21-2009, 01:02 PM #1
Member
- Join Date
- Dec 2009
- Posts
- 2
- Rep Power
- 0
Launch External Console app
Hello, i have a few C programs that i would like to be able to launch from java, i have tried using a ProcessBuilder and runtime.exec to launch it but it doesn't seem to display the Command prompt with the output. But it does start the process as its in the task manager.
so i am using:
Java Code:Process process = new ProcessBuilder(runPath).start();
It has to be done like this are the C apps would take some weeks porting to Java.
Any Help please :)
- 12-21-2009, 03:50 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 14,422
- Blog Entries
- 7
- Rep Power
- 29
As you have noticed, starting an executable file doesn't start another console for you; you have to do that yourself: your Java program starts another shell/console that starts your executable file.
kind regards,
Jos
- 12-21-2009, 04:22 PM #3
Member
- Join Date
- Dec 2009
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
Launch Error
By roughjj in forum EclipseReplies: 1Last Post: 10-30-2009, 08:59 PM -
launch a pdf/jpg/txt/doc/bmp[...] files from my code...
By atom86 in forum Advanced JavaReplies: 2Last Post: 09-25-2009, 07:13 PM -
How I launch an external program and kill the father?
By Dr_Misterio in forum New To JavaReplies: 2Last Post: 08-05-2009, 04:31 PM -
Link an external compiler to the eclipse environment throw the console in eclispe
By adolf111 in forum EclipseReplies: 1Last Post: 12-13-2008, 02:24 AM -
launch a browser with a button
By lemon3 in forum NetBeansReplies: 1Last Post: 07-07-2008, 06:49 AM
Bookmarks