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?