port binding "problem" with Eclipse, Java, & Windows

Posted by Jay on Stack Overflow See other posts from Stack Overflow or by Jay
Published on 2010-05-06T14:51:58Z Indexed on 2010/05/06 14:58 UTC
Read the original article Hit count: 223

Filed under:
|
|

Hi All, I use eclipse to develop a web based java application. My normal course of business is grab the next task tracking ticket. If there is a problem that needs to correcting, I run the application locally, which loads of a Jetty webserver, and binds to port 8080. After verifying the problem, I fix the problem, rebuild, and the re-run the application. The problem is, I far too often forget to close the jetty server before re-running. This generates the Java bind error:

WARNING: failed [email protected]:8080: java.net.BindException: Address already in use: JVM_Bind

I work in Windows, and was looking to see if there is command I could run to un-bind the port, but couldn't find an answer there. Does anyone here have a good idea of how to fix my problem, other than remember to shut down the old jetty instance before starting a new one?

Thanks, Jay

© Stack Overflow or respective owner

Related posts about eclipse

Related posts about java