如何解决“java.net.BindException:已使用的地址:JVM_Bind”错误? [英] How do I resolve the "java.net.BindException: Address already in use: JVM_Bind" error?
问题描述
在Eclipse中,我收到以下错误:
In Eclipse, I got this error:
run:
[java] Error creating the server socket.
[java] Oct 04, 2012 5:31:38 PM cascadas.ace.AceFactory bootstrap
[java] SEVERE: Failed to create world : java.net.BindException: Address already in use: JVM_Bind
[java] Java Result: -1
BUILD SUCCESSFUL
Total time: 10 seconds
我不知道为什么它出现了,但几个小时前它跑得很好。我需要重启机器吗?我如何得到它的底部?我感谢任何提示或建议。
I'm not sure why it came up now, but it ran fine just a few hours ago. Do I need to restart my machine? How do i get to the bottom of it? I appreciate any tips or advice.
推荐答案
是的,你有另一个进程绑定到同一个端口。
Yes you have another process bound to the same port.
TCPView (仅限Windows)从 Windows Sysinternals 是我最喜欢的应用程序,只要我有一个JVM_BIND错误。它显示哪些进程正在侦听哪个端口。它还提供了一个方便的上下文菜单,可以杀死进程或关闭正在阻碍的连接。
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.
这篇关于如何解决“java.net.BindException:已使用的地址:JVM_Bind”错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!