Navigation Bar

Saturday, July 18, 2026

Java Debug : Process Main is Running

When debugging your application if you get Process 'Main' is Running, even after you have stopped the application in the bottom left corner by clicking the Red square button you need to do the following.

I means most probably your OS has locked a ghost java program in the background.

Step 1: Force-Kill the Process via Terminal

On cmd prompt

taskkill /F /IM java.exe


Step 2: Clear IntelliJ's Cache (If Step 1 Fails)

In the main menu, select File, select Invalidate Caches and check the first box (Clear File System Cache and Local History).

Then you can go in debug mode again, SHIFT-F9 , Step Over SHIFT-F8 and Step Into SHIFT-F7.



No comments:

Post a Comment