Skip to content

Instantly share code, notes, and snippets.

@vietlq
Created April 12, 2017 19:27
Show Gist options
  • Save vietlq/07b5a99ad2d7ee25697d84c08c9b4116 to your computer and use it in GitHub Desktop.
Save vietlq/07b5a99ad2d7ee25697d84c08c9b4116 to your computer and use it in GitHub Desktop.
Code2Pro: How to Install Latest Eclipse on Ubuntu

Code2Pro: How to Install Latest Eclipse on Ubuntu

Scope

Tested with Ubuntu 16

Steps

  • Install JDK
sudo apt-get install openjdk-8-jdk-headless
  • Download Eclipse

You can find suitable downloads from here: https://eclipse.org/downloads/index-developer.php?osType=linux&release=undefined

For me I have Linux 64bit and I work on C++ so I downloaded eclipse-cpp-oxygen-M6-linux-gtk-x86_64.tar.gz.

  • Move eclipse to a shared location
sudo mkdir -p /opt/usr/tools sudo mkdir -p /opt/usr/bin
sudo mv eclipse /opt/usr/tools/
sudo ln -s /opt/usr/tools/eclipse/eclipse /opt/usr/bin/

export PATH=$PATH:/opt/usr/bin

eclipse &
  • Update your .bashrc/.bash_profile:

Add the following line:

export PATH=$PATH:/opt/usr/bin

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment