<< JLink`;
InstallJava[];
Clear[serverSocket, socket];
serverSocket = JavaNew["java.net.ServerSocket", 12345];
socket = serverSocket@accept[];
If I enter Alt+.,the program can not stop.
However in Eclipse,I can press ("Terminate" button) to stop the running java program.
I want to know how to stop this program in Mathematica.