我寫了一個簡單的服務器客戶端套接字程序,當我重新編譯服務器,我得到:如何殺死windows7下打開的服務器套接字?
java.net.BindException: Address already in use: JVM_Bind
at java.net.DualStackPlainSocketImpl.bind0(Native Method)
at java.net.DualStackPlainSocketImpl.socketBind(Unknown Source)
at java.net.AbstractPlainSocketImpl.bind(Unknown Source)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
所以我的問題是如何殺死在Windows 7下的插座?有沒有可能的解決方案在eclipse中殺死它?
我感謝您的回答!