慕雪845970
2018-06-30 22:50
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)
at socket.Server.main(Server.java:18)
这说明你之前已经开启了一个服务器的线程,端口号被占用了,关闭开启的服务器线程,然后重新打开就可以了
Java Socket应用---通信是这样练成的
125013 学习 · 590 问题
相似问题