eclipse – How do I resolve the java.net.BindException: Address already in use: JVM_Bind error?
eclipse – How do I resolve the java.net.BindException: Address already in use: JVM_Bind error?
If you know what port the process is running you can type:
lsof -i:<port>
.
For instance, lsof -i:8080
, to list the process (pid) running on port 8080.
Then kill the process with kill <pid>
Yes you have another process bound to the same port.
TCPView (Windows only) from Windows Sysinternals is my favorite app whenever I have a JVM_BIND error. It shows which processes are listening on which port. It also provides a convenient context menu to either kill the process or close the connection that is getting in the way.
eclipse – How do I resolve the java.net.BindException: Address already in use: JVM_Bind error?
In windows
netstat -ano
will list all the protocols, ports and processes listening .
Use
taskkill -pid proces to kill /f
to kill the process listening to the port.
e.g
taskkill -pid 431 /f