I have a shutdown hook in my application (created using Runtime.getRuntime().addShutdownHook). However if I launch the application from within Eclipse, when it
Runtime.getRuntime().addShutdownHook
Sairam is right here, By calling System.exit(0) we can terminate eclipse JVM and can see Shutdown hook results