Archives For November 30, 1999

eclipse ide

This simple tutorial shows how to install the latest Eclipse IDE in Ubuntu while the one in Ubuntu Software is always old.

Eclipse in Ubuntu Software is the containerized snap package and it’s old. Fortunately, an official installer is available for Linux.

1. Download & start Eclipse Installer:

Firstly go to the official download page, and grab the installer:

Then extract the tarball, and go into the result folder. Right-click and select “Run” the eclipse-inst file.

Or you can right-click on blank area and select “Open in Terminal”, and then run ./eclipse-inst in the pop-up terminal:

2. Install Eclipse:

When the installer wizard opens, choose “Eclipse for Java”, “Eclipse for Javascipt and Web”, or other that you want to install.

Next click on “Install” button, and accept the license to start installing the IDE:

The software is by default installed to the user home folder for single user use. Once installed, you can launch it either from system application launcher or the desktop shortcut (need to first right-click and choose “Allow Launching”).

How to Remove Eclipse Completely:

The software is installed by default in user’s home directory. Simply open the file manager, and remove the eclipse folder and eclipse-workspace folder.

For the desktop shortcut, just move it to trash. For app shortcut in the system launcher, press Ctrl+Alt+T to open terminal and run commands:

  • navigate to app shortcut folder for local user:
    cd .local/share/applications/
  • remove all Eclipse related files:
    rm *eclipse*.desktop epp*.desktop

Eclipse 4.8 Photon was released a week ago. You can now install it in Ubuntu 18.04, Ubuntu 17.10, Ubuntu 16.04 easily via snap package.

Eclipse Photon release highlights:

  • Full Eclipse IDE user experience for building, debugging, running and packaging Rust applications.
  • Expanded C# editing and debug capabilities, including syntax coloring, autocomplete suggestions, code diagnostics, and code navigation tools.
  • Java 9, Java 10 and JUnit 5 support.
  • Dark theme improvements in text colors, background color, popup dialogs, mark occurrences, and more.

How to Install Eclipse 4.8 Photon in Ubuntu:

The community has built the snap package of Eclipse Photon. It’s an universal Linux package format that bundles all its dependencies, and auto-updates itself once a new release is published.

The Eclipse 4.8.0 snap can by easily installed in Ubuntu Software:

Note that there are two versions of Eclipse in Ubuntu Software. Take a look at the version number before installing the package.

You can also install the snap by running command in terminal:

snap install --classic eclipse

In addition:

1. For Ubuntu 16.04 users never installed a snap package, make sure snapd daemon is installed via command:

sudo apt-get install snapd snapd-xdg-open

2. For Java environment, either install the OpenJDK via command:

sudo apt-get install default-jre

For Oracle Java 8 or Java 10, see this how to tutorial.

The latest release of Eclipse IDE now is quite easy to install in Ubuntu 16.04, and Ubuntu 18.04 since it’s made into snap package.

Snap is an universal Linux package format. It ships with most run-time libraries so it’s normally large in file size. The snap applications run in sandbox and they can be installed directly from Ubuntu Software.

1. So you can just open Ubuntu Software, search for and install Eclipse 4.7.3a snap package:

For those prefer Linux command, run command in terminal to install the Eclipse snap:

snap install --classic eclipse

2. Eclipse needs java. If you don’t have it, run command in terminal to install OpenJDK java environment:

sudo apt-get install default-jre

You can also install Oracle Java 8 and/or 10 via this tutorial.

This quick tutorial is going to show you how to install the latest release of Eclipse, while the Ubuntu repositories has an very old version.

So far, the latest is Eclipse Kepler (4.3.2). You can follow below steps to install it on Ubuntu 14.04 or other Ubuntu releases.


1. Install Java.

If you don’t have Java installed on your system. Click the link below to bring up Ubuntu Software Center and click install OpenJDK Java 7:

Or, install Oracle Java from this link.

2. Download Eclipse from its website

You may check out your OS Type 32-bit or 64-bit by going to System Settings -> Details -> Overview

3. Extract Eclipse to /opt/ for global use

Press Ctrl+Alt+T on keyboard to open the terminal. When it opens, run the command below to extract Eclipse to /opt/:

cd /opt/ && sudo tar -zxvf ~/Downloads/eclipse-*.tar.gz

You may replace “eclipse-*.tar.gz” (without quote) to the exact package name if the command does not work.

Don’t like Linux commands? You can do this by opening Nautilus file browser via root: Press Alt+F2 -> run gksudo nautilus.

Once done, you should see the eclipse folder under /opt/ directory.

4. Create a launcher shortcut for Eclipse

Press Ctrl+Alt+T, paste below command into the terminal and hit enter (install gksu from Software Center if below command does not work).

gksudo gedit /usr/share/applications/eclipse.desktop

Above command will create and open the launcher file for eclipse with gedit text editor.

Paste below content into the opened file and save it.

[Desktop Entry]
Name=Eclipse 4
Type=Application
Exec=/opt/eclipse/eclipse
Terminal=false
Icon=/opt/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=Eclipse

Finally open Eclipse from Unity Dash search results and enjoy!

Not clear enough? See the youtube video: