Skip to content

Instantly share code, notes, and snippets.

@abdallahokasha
Last active April 20, 2019 16:35
Show Gist options
  • Save abdallahokasha/6b6217ca982983490deb50d47e5bc913 to your computer and use it in GitHub Desktop.
Save abdallahokasha/6b6217ca982983490deb50d47e5bc913 to your computer and use it in GitHub Desktop.
Install Eclipse oxygen on Ubuntu18.04

Install Eclipse on ubuntu

Go to Eclipse and download Download Eclipse C++ IDE

and Eclipse for Java SE

Go to Downloads directory and list floders there

cd Downloads/ && ls

We should find the two packages downloaded as
eclipse-cpp-oxygen-3a-linux-gtk-x86_64.tar.gz
eclipse-java-oxygen-3a-linux-gtk-x86_64.tar.gz
Now extract eclipse-cpp package and rename it to eclipse-cpp-oxygen-3a instead of just eclipse

tar -xvzf eclipse-cpp-oxygen-3a-linux-gtk-x86_64.tar.gz

and rename it, mv eclipse eclipse-cpp-oxygen-3a

The same for eclipse-java package extract it and rename to eclipse-java-oxygen-3a instead of just eclipse

tar -xvzf eclipse-java-oxygen-3a-linux-gtk-x86_64.tar.gz

and rename it, mv eclipse eclipse-java-oxygen-3a

Now copy the extracted packages to /usr/local/applications

sudo mv eclipse-cpp-oxygen-3a /usr/local/bin/eclipse-cpp-oxygen-3a

sudo mv eclipse-java-oxygen-3a /usr/local/bin/eclipse-java-oxygen-3a

Make icon launcher for Eclipse

To make a desktop icon launcher go to on usr/share/applications
Create the file using sudo touch usr/share/applications/eclipse-cpp.desktop

and edit it using nano sudo nano /usr/share/applications/eclipse-cpp.desktop

Paste these edits and save the file

[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Eclipse-C++
Icon=/usr/local/bin/eclipse-cpp-oxygen-3a/icon.xpm
Exec="/usr/local/bin/eclipse-cpp-oxygen-3a/eclipse"
Comment=Eclipse for c++
Categories=Development;
Terminal=false
StartupNotify=true

We should see eclipse-c++ icon launcher now

The same for Eclipse-java create .desktop file and edit it using nano

sudo nano /usr/share/applications/eclipse-java.desktop

[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Eclipse-Java SE
Icon=/usr/local/bin/eclipse-java-oxygen-3a/icon.xpm
Exec="/usr/local/bin/eclipse-java-oxygen-3a/eclipse"
Comment=Eclipse for Java
Categories=Development;
Terminal=false
StartupNotify=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment