i was using eclipse with tomcat then port is in use code example
Example 1: port 8080 already in use
netstat -ano | findstr 8080
Example 2: port 8080 already in use
taskkill /F /pid 1088
netstat -ano | findstr 8080
taskkill /F /pid 1088