使用Neon,Eclipse附带了一个安装程序。 我在安装程序中找不到任何配置菜单。 我的java版本是:
java -version
java version "1.8.0_72"
Java(TM) SE Runtime Environment (build 1.8.0_72-b15)
Java HotSpot(TM) 64-Bit Server VM (build 25.72-b15, mixed mode)
在ubuntu 14.04 64位上。
我尝试在eclipse-inst.ini中配置代理:
...
-Djava.net.useSystemProxies=true
-Dhttps.proxyPort=8888
-Dhttp.proxyPort=8888
-Dhttps.proxyHost=localproxy
-Dhttp.proxyHost=localproxy
如此处所述https://docs.oracle.com/javase/8/docs/technotes/guides/net/proxies.html 但安装程序挂起......
答案 0 :(得分:12)
有两种选择:
答案 1 :(得分:1)
一种更简单的方法是在命令行中设置代理:
Linux:
bash $ export http_proxy=http://www-proxy.example.com:80
bash $ export https_proxy=http://www-proxy.example.com:80 # Replace with your proxy protocol, url and port.
bash $ cd <Folder where Eclipse installer is downloaded>
bash $ ./eclipse-inst
csh $ setenv http_proxy http://user:password@proxy.domain.com:port
csh $ setenv https_proxy http://user:password@proxy.domain.com:port
csh $ cd <Folder where Eclipse installer is downloaded>
csh $ ./eclipse-inst
Windows:
set HTTP_PROXY=http://user:password@proxy.domain.com:port
set HTTPS_PROXY=http://user:password@proxy.domain.com:port
并从同一命令行调用eclipse-inst工具。
答案 2 :(得分:0)
我可以找到一种解决方法,即从之前的Eclipse Mars配置中复制有效的网络配置。
cp <old_eclipse>/configuration/.settings/org.eclipse.core.net.prefs <neon_installer_path>/eclipse-installer/configuration/.settings
它有效,但它真的看起来像黑客,任何其他线索?
答案 3 :(得分:0)
解决方案为我工作: Windows:
设置HTTP_PROXY = http://user:password@proxy.domain.com:port 设置HTTPS_PROXY = http://user:password@proxy.domain.com:port 并从同一命令行调用eclipse-inst工具。