2006-09-18 hoge class hoge{ public static void main(String[] argv){ Runtime.getRuntime().addShutdownHook( new Thread(){ public void run(){ System.exit(0); } }); } }