无法使用Eclipse在Java中进行调试

无法使用Eclipse在Java中进行调试,第1张

无法使用Eclipse在Java中进行调试

我只是有同样的问题。

昨天一切正常,现在什么都没有了-与您给出的错误相同。我发现网络管理员在此期间进行了一些更改。一些防火墙的东西。问题是Eclipse试图在“
localhost”(和一些随机端口)建立与JVM的连接。当我尝试ping localhost(或127.0.0.1)时,得到以下信息:

C:Windowssystem32>ping 127.0.0.1Pinging 127.0.0.1 with 32 bytes of data:PING: transmit failed. General failure.PING: transmit failed. General failure.PING: transmit failed. General failure.PING: transmit failed. General failure.

C:Windowssystem32>ping localhostPing request could not find host localhost. Please check the name and try again.

它暗示了在某些情况下,DNS应该可以解决此问题,并且如果防火墙阻止了localhost对DNS的请求,则会中断。我不得不更改主机文件并删除以下行中的注释,因此我不再依赖DNS:

# 127.0.0.1       localhost# ::1  localhost

尽管主机文件更改立即生效,但我认为某些进程已对此进行锁定并需要重新启动。之后,一切又恢复了。



欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5054349.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-15
下一篇 2022-11-15

发表评论

登录后才能评论

评论列表(0条)

保存