开发者

Netbeans cannot connect to internet (java.net.ConnectException: Network is unreachable)

开发者 https://www.devze.com 2023-01-15 13:10 出处:网络
(I\'m not sure if this question belongs here or on superuser.com, but it\'s about IDE so...) So I installed Netbeans with installation bundle from netbeans.org and it can\'t connect to internet. It ca

(I'm not sure if this question belongs here or on superuser.com, but it's about IDE so...) So I installed Netbeans with installation bundle from netbeans.org and it can't connect to internet. It can't reload plugin catalog or upload files to FTP. While updating plugin catalog it gives me the error:

Unable to connect to the NetBeans because of java.net.ConnectException: Ne开发者_运维问答twork is unreachable

I'm using Crunchbang Linux statler (a debian-based distro) so I've also tried debian repositories and it actually worked (it could connect to internet), but the newest version there is 6.0 which is very old (at least for me).

Thank you for your answers.


I had the same problem. Dual IP stack seems to cause this issue (see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=560142).

Appending -J-Djava.net.preferIPv4Stack=true to netbeans_default_options variable in netbeans-6.9.1/etc/netbeans.conf has solved the problem for me.

0

精彩评论

暂无评论...
验证码 换一张
取 消