Following are the steps that will definitely work:
- Open CMD : Press Windows+R from keyboard or just type "cmd" in windows search
- Type Following in cmd :
netstat -aon | find ":8080" | find "LISTENING"
- See the last column : There will be some number like 2816 or similar.(It will differ from this)
- Now open Task Manager (Keyboard shortcut :
Ctrl+Shift+Esc
)
- In that, go to Details Tab and under PID Column, search for the number you found in step 3
- Right Click on it and select
end process
- Now happily go to Netbeans and Run your program
NOTE : If you are running your program for the first time in Netbeans, it takes some time. So don't worry if it takes time.