3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Eclipse debug 起動時エラー

Posted at

事象

Eclipse で debugモードを起動しようとすると下記のようなエラーメッセージが発生し起動できませんでした。

※ 環境 macOS

ERROR: transport error 202: gethostbyname: unknown host
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:750]

ちなみに通常起動はできると言った状態です。

解決方法としては、/etc/hostsファイルのlocalhost部分を127.0.0.1 以外コメントアウトするという方法。

/etc/hosts

127.0.0.1       localhost
255.255.255.255 broadcasthost
#::1     localhost

すこしはまったのでメモ。

3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?