![]() |
![]() OCAU News - Wiki - QuickLinks - Pix - Sponsors |
|
|||||||
| Notices |
|
Sign up for a free OCAU account and this ad will go away! Search our forums with Google: |
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Member
Join Date: Jul 2001
Location: Adelaide
Posts: 599
|
I'm wondering how to launch an application from a java program, I'm wirting a java progam to break a string up an then launch a program with the parameters from the string. I'm using linux so I need to know how to launch an app from java.
__________________
Intel D975XBX2, Core2 Duo E6600, 4Gb Corsair DDR2, radeon x1950XT, 2x 36Gb raptor, SB Audigy2 ZS, ASUS SATA Burner GoBusiac Prime |
|
|
|
| Join OCAU to remove this ad! |
|
|
#2 | |
|
Member
Join Date: Jul 2002
Location: Canberra
Posts: 974
|
Quote:
Code:
Runtime rt = Runtime.getRuntime();
rt.traceInstructions(true);
rt.traceMethodCalls(true);
try {
proc = rt.exec(Application.GATHER_STRING+" "+args);
while (!processFinished()) {
synchronized(proc) {
while (isSuspended) {
proc.wait();
}
}
}
|
|
|
|
|
![]() |
| Bookmarks |
|
Sign up for a free OCAU account and this ad will go away! |
| Thread Tools | |
|
|