If a Java app built in Eclipse hangs (due to getting into an infinite loop, for instance), the only way I can find to get it to terminate is to quit the IDE and restart it. Is there some sort of stop button I can use if I encounter this problem?
If you are running it from within Eclipse, switch to the Debug perspective and then take a look in the Debug view - it will contain a list of all the running threads. You can elect to stop them by selecting them and click the red square or right click and select Terminate.
If you are running it from within Eclipse, switch to the Debug perspective and then take a look in the Debug view - it will contain a list of all the running threads. You can elect to stop them by selecting them and click the red square or right click and select Terminate.