With Neon, Eclipse comes with an installer. I could not find any configuration menu in the installer. My java version is:
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)
on an ubuntu 14.04 64 bits.
I tried to configure the proxy in the eclipse-inst.ini:
...
-Djava.net.useSystemProxies=true
-Dhttps.proxyPort=8888
-Dhttp.proxyPort=8888
-Dhttps.proxyHost=localproxy
-Dhttp.proxyHost=localproxy
as documented here https://docs.oracle.com/javase/8/docs/technotes/guides/net/proxies.html but the installer hangs...
There are two options:
A simpler approach would be to set up proxy in your command line:
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
and invoke the eclipse-inst tool from the same command line.
I could find a workaround, which is to copy a valid network configuration from a previous Eclipse Mars configuration.
cp <old_eclipse>/configuration/.settings/org.eclipse.core.net.prefs <neon_installer_path>/eclipse-installer/configuration/.settings
It works, but it really looks like a hack, any other clues?
Solution worked for me: Windows:
set HTTP_PROXY= http://user:password@proxy.domain.com:port set HTTPS_PROXY= http://user:password@proxy.domain.com:port and invoke the eclipse-inst tool from the same command line.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.