Application adds a shutdown hook using java.lang.Runtime.getRuntime().addShutdownHook( hook ); . Hook gets called when application or created jar started from command line, but not when .exe started
Log in to post a comment.