Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

close external program

807607Jan 11 2007 — edited Jan 15 2007
Hello, I've created this simple chat program with swing. And Ive also made this external server which handels the klients(users). Ive turned this server program into an .exe file. In my chat program I can start this server with:
Runtime runtime = Runtime.getRuntime();
Process p = runtime.exec("c:\\searchwayToWereMyServerIs.exe");
And that works fine.

But now I wanna close the server also. Ive tryed to use the
p.destroy(); 
command but it doesnt work. Does anyone know an way(another way) to end this external server?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 12 2007
Added on Jan 11 2007
43 comments
263 views