java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind 报错的原因

java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind 报错是什么原因?

原因:tomcat端口号被占用了

解决办法:到tomcat 下的conf文件下的server.xml 把

<Connector port="8090" protocol="HTTP/1.1" 
               connectionTimeout="20000" 
               redirectPort="8443" /> 
修改为不常用额端口就可以了,如:
  <Connector port="8099" protocol="AJP/1.3" redirectPort="8443" /> 
就OK了

你可能感兴趣的:(Windows Socket)