Netbeans keeps on restarting
I had similar problem where Netbeans automatically restarts after closing it. I found that it tries to update JUnit plugin in the starting of the program but cannot complete successfully. Then, I run Netbeans as Administrator and the problem is solved now.
I got the same problem. It happens because NetBeans does not have enough privilege to update. Kill NetBeans by Task Manager -> Right click on the shortcut -> Run as Administrator. Now when you close NetBeans, it won't restart anymore.
Apparently this problem is caused by failed updates. In my case, the solution was to go to Netbeans’ installation path and empty the subfolder enterprise\update\download completely. After that it started normally again, and a new attempt to install the update was then successful
This site worked for me:
http://blog.ginchen.de/en/2013/09/26/netbeans-startet-nach-dem-schliessen-sofort-neu/