栏目分类:
子分类:
返回
终身学习网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
终身学习网 > IT > 面试经验 > 面试问答

无法使用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

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



转载请注明:文章转载自 www.051e.com
本文地址:http://www.051e.com/it/419127.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 ©2023-2025 051e.com

ICP备案号:京ICP备12030808号