Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install Eclipse Neon behind a proxy

Tags:

java

eclipse

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...

like image 656
Ronan Fauglas Avatar asked Aug 26 '16 14:08

Ronan Fauglas


People also ask

How do I add a proxy to Spring Tool Suite?

Just click on Connections tab and LAN Settings button. Check Use a proxy server for your LAN (...) box and provide proxy details. Then go to Spring Tool Suite window and click on Window >> Preferences >> General >> Network Connections and choose Native from the Active Provider drop down list.


2 Answers

There are two options:

  1. Download a full package instead of using the installer. There's a link right on the downloads page, but here's where to get the packages.
  2. Switch the installer to Advanced Mode (use the menu button in the top-right corner of the installer window). In Advanced Mode there is a place to confiure proxy settings:

enter image description here

like image 172
E-Riz Avatar answered Oct 11 '22 12:10

E-Riz


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:[email protected]:port
csh $ setenv https_proxy http://user:[email protected]:port
csh $ cd <Folder where Eclipse installer is downloaded>
csh $ ./eclipse-inst

Windows:

set HTTP_PROXY=http://user:[email protected]:port
set HTTPS_PROXY=http://user:[email protected]:port

and invoke the eclipse-inst tool from the same command line.

like image 34
Vishnu Avatar answered Oct 11 '22 11:10

Vishnu