Eclipse all in one linux

How to Install Eclipse IDE on Linux

Ransomware recovery test drive: This technical workshop is designed to take you behind the scenes and shows you how to adopt strategies to automate recovery, ensuring you’re ready to become a recovery hero. REQUEST YOUR LAB

Eclipse is a popular Integrated Development Environment (IDE) that offers a ton of features. But installing Eclipse can be quite the challenge – especially on Linux.

This guide aims to simplify that task by providing clear and concise instructions on how to install Eclipse IDE in Ubuntu.

By the end of this guide, you should have a working installation of Eclipse that you can use to develop your applications.

Prerequisites

This hands-on tutorial requires you to have the following items so that you may follow along with the examples seamlessly.

  • Your Linux computer must have Java installed. This tutorial will be using OpenJDK 11.0.15.
  • You must have access to the root account or an account with sudo privileges. This guide uses a root account to execute commands.

Installing Eclipse on Linux

The Eclipse package is not available in the Ubuntu package repository as of this writing, which means you cannot install Eclipse via apt or the Software Manager. Don’t worry; there are several ways to install the Eclipse IDE.

How to Install Eclipse IDE from the Snap Store (Terminal)

Eclipse is available in the Snap Store, so you can install it with the snap command. If you’re unfamiliar with Snap, it’s a package manager for Linux that allows you to install and update applications with a single command.

Snaps are convenient to install and update. They are safe to run and isolated from the rest of your system, so they don’t put your system at risk.

While Snap is an excellent app source, the Eclipse version available in the Snap store might not be the latest one.

1. First, open a terminal window on your computer and run the below command to confirm that Snap is installed.

If Snap is available on your system, you will see the version information in the result.

Checking the Snap version

2. If Snap is not installed, run the below command to install.

Installing Snap

3. Create a symbolic link between /var/lib/snapd/snap and /snap. Doing so gives Snap apps access to your home directory after the installation.

ln -s /var/lib/snapd/snap /snap

4. Now, update the Snap package list by running the below command.

Updating the Snap package list

5. Run the following command to install the latest stable version of Eclipse. This command downloads the latest stable version of Eclipse from the Snap store and installs it on your system.

snap install --classic eclipse

The output below shows that you have successfully installed Eclipse IDE from the Snap store. The version number may be different depending on when you installed it. In this example, the Eclipse version from Snap is 2019-12 at the time of writing.

Читайте также:  Linux local dns resolver

Snap is 2019-12

Installing the latest stable version of Eclipse.

6. At this point, you have successfully installed Eclipse IDE from the Snap store. To launch Eclipse, click on the Activities tab in the top left corner of your screen and search for Eclipse.

Launching the Eclipse IDE

How to Install Eclipse IDE using the Eclipse Installer

If you want the latest and greatest, install the official package from the Eclipse website. The version available on the official Eclipse website is always the latest one.

Compared with the Snap installation method, installing the official package requires more steps. But don’t worry. This section will walk you through the installation process step by step.

To install Eclipse from the official Eclipse website, follow these steps.

1. Open the Eclipse download website using your web browser.

2. Click the appropriate download link for Linux, as shown below. By default, the browser will download the file to your Downloads folder (~/Downloads).

Downloading the Eclipse package

3. Extract the downloaded archive file using the commands below. These commands extract the contents of the package to the /opt directory.

You can choose any location you want to extract the file. But /opt is a common directory for optional software packages, so it’s a good choice.

The -xvzf options tell tar to (x) extract the (f) file through (z) gzip and display the progress (v).

cd /opt tar -xvzf ~/Downloads/eclipse-inst-jre-linux64.tar.gz

Extract the downloaded archive

4. The installer extracts to the eclipse-installer subdirectory. To confirm the sub directory exists, run the below command.

See the extracted eclipse-inst

5. Change the working directory to the eclipse-installer subdirectory.

6. Now that you are in the eclipse-installer directory, run the ./eclipse-inst file to launch the installer.

7. On the Eclipse installer window, click the Eclipse IDE type you wish to install. This example installs the Eclipse IDE for Java Developers.

Selecting the installation type

8. Select your Java version and the installation directory on the next screen. The default Java version and installation directory are acceptable in most cases.

Tick the two checkboxes to launch Eclipse using the start menu and the desktop icon. Click the Install button to start the installation process.

Configuring the installation options

9. Next, click Accept Now on the Eclipse Foundation Software User Agreement page.

Accepting the Software User Agreement

10. Review the Licenses and click Accept to proceed.

Accepting the Licenses

The status changes to Installing.

Eclipse IDE installation in progress

11. After the installation, click the exit button and No to exit the installer.

Closing the Eclipse installer

Starting Eclipse

You’ve completed learning how to install Eclipse IDE. Depending on which installation method you used, there are a few ways to start the Eclipse IDE.

From the Terminal

If you installed Eclipse through the Snap Store, one way to start the Eclipse IDE is by running the below command in the terminal.

Note: This method does not apply if you installed Eclipse IDE using the Eclipse installer.

Starting Eclipse IDE from the terminal

From the Application Finder

Most Linux desktop environments have a search or application finder that allows you to search for an application and launch it.

For example, in Ubuntu GNOME, click the Activities menu and type “eclipse” to search for the Eclipse IDE.

Starting Eclipse IDE from the Activities search

Another example on the XFCE desktop, click the Application Finder icon on the dock. Type “eclipse” in this search bar to find the Eclipse IDE app and click Launch.

Starting Eclipse IDE from the Application Finder

From the Desktop Shortcut

If you installed Eclipse IDE using the Eclipse installer, the installer automatically creates a desktop shortcut for you. All you need to do is double-click the icon to launch the Eclipse IDE.

Читайте также:  Linux mount by uid

Starting Eclipse IDE from the Desktop shortcut

The Eclipse IDE Launcher asks you to specify the workspace directory. Choose the default location or browse to a different one as you wish. This workspace will store all your project files, including the preferences. Once you’ve selected the workspace location, click the Launch button.

Selecting the workspace location

Eclipse will now launch with your selected workspace. You will see the welcome screen when Eclipse launches successfully, as shown below. You can now start using Eclipse.

Eclipse IDE

Conclusion

A popular IDE for Java development, Eclipse comes packed with features to help make your life as a developer easier. In this guide, you have learned the different methods to install Eclipse on Linux and how to launch it.

Are you looking to extend the Eclipse IDE features? The Google App market is a great place to start looking for plugins to add to your Eclipse installation. With over 1000 plugins available, you will find something that will help your development workflow.

Have you used Eclipse before? What are some of your favorite features? Let us know in the comments below!

Hate ads? Want to support the writer? Get many of our tutorials packaged as an ATA Guidebook.

Источник

How to Install Eclipse on Ubuntu and Other Linux

A guide to installing the latest version of Eclipse IDE for Java, C++ and PHP on Ubuntu and other Linux distributions.

Eclipse IDE

You can always choose to write programs using code editors. It will work for small projects with only a few files. But if you are considering serious programming or working on a not-so-small project, a normal text editor isn’t going to cut it anymore. You need an IDE (Integrated Development Environment). Eclipse is one such IDE that is primarily used for C, C++ and Java development. Other languages support can be added on top of an existing installation or they can be installed as separate Eclipse packages.

Make sure you have Java installed on your system. You can follow our guide to install Java on Ubuntu Linux.

Installing Eclipse on Ubuntu and other Linux distros

  • Use Snap: easiest method but Snap apps are slow
  • Install Eclipse through the official installer
  • Install Eclipse in classic Linux style by keeping the executables in /opt directory

You can go through all three installation process and see which one fits your need.

Method 1: Installing Eclipse using Snap [Easy]

You can install the snap package available for Linux. You can either install it from the terminal or the software centre in Ubuntu.

Open the Software Centre application in Ubuntu, search for Eclipse, and install it from there.

Install Eclipse IDE as a snap application from Ubuntu Software Centre

We also have a guide on using snap packages if you are not sure about the support for snap packages for your Linux distributions.

If you proceed to install it via the terminal, here’s what you have to type in:

sudo snap install eclipse --classic 

How to update Eclipse? The snap applications are updated automatically. If a newer version is available through Snap, it will be automatically updated.

How to remove Eclipse? You can look for Eclipse in Ubuntu Software Center and remove it. Alternatively, you can always use the command line:

Method 2: Installing Eclipse using the official installer (for intermediates)

The lauching screen for Eclipse IDE

Eclipse provides an installer that can be used to start the installation process. This is similar to installing applications on Windows.

Читайте также:  Linux распаковать все архивы zip

On the page, you’ll see the option to download the installer for Linux. Usually, you would go for x86_64 unless you are using Raspberry Pi.

Eclipse installer download for Linux

Extract the downloaded file. Once extracted, open the folder and run the file eclipse-inst , either by double-clicking or by running the following command inside the extracted eclipse-installer directory:

On Ubuntu Wayland Sessions, the installer loaded weirdly for me. Unable to resize or move the installer window. Opening it under Xorg kind of solved the issue.

Select which IDE you want to install from the list.

From a list of different IDE for different languages, you need to select one, that you need

The next screen will give you an overview of the installation. Press Install to start the installation.

Press the install button to start the installation process of Eclipse IDE

It will ask you to accept the license agreement.

The Eclipse Foundation Software User Agreement, that you may need to accept during the installation process

It will start the download and installation of the required files.

Screenshot of the Eclipse IDE installer, showing the progres of installtion

Sometimes, there will be notifications about slow downloads. Wait for some time; the installer will complete it all fine.

And that’s it! Installation is over. You can launch it for the first time directly from the installer.

The installation completion notification along with a button to lauch the IDE. Press the Launch button will open the IDE for the first time.

It will now ask to set up a workspace directory. Set it to your liking and press Launch.

Eclipse IDE Launcher screen, that ask to set the Workspace directory. Set it and press the launch button to open the IDE

Now, you just have to search for Eclipse in the app drawer and launch it.

Open the Eclipse IDE fro Ubuntu Activities Overview by searching for it and pressing Enter

Method 3: Install Eclipse in classic Linux style (for experts)

Make sure you don’t confuse “package” with the installer available. Unlike the installer, this one will give you the complete files for your chosen Eclipse version.

Go to the download page of Eclipse.

Here, go to your desired version of Eclipse. Say, you want to use Eclipse for Java development. Download the Java version for Linux.

Eclipse Java installer for Linux

It is also worth noting that I assume the directory ‘Downloads’ as your default storage path to save the Eclipse package downloaded. If you have a different path, replace the file path from the steps below.

Step 1. Launch the terminal and enter the following command:

Step 2. Next, you have to extract the downloaded package to this directory by entering the following command:

sudo tar -xvzf ~/Downloads/eclipse-jee-* 

Step 3. After extracting the files, you have to make a menu entry (so that when you search for Eclipse, an icon will appear in the app drawer).

sudo gedit eclipse.desktop

Basically, you are making the file for the shortcut icon here. Next, you need to set up the shortcut to launch Eclipse. So, when the text editor opens, enter the following information and save it (copy-paste what’s written below):

[Desktop Entry] Name=Eclipse 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 Name[en_US]=Eclipse

4. Close the text editor and enter the following command to enable the shortcut icon:

sudo desktop-file-install eclipse.desktop

Now, you just have to search for Eclipse in the app drawer and launch it.

Eclipse Desktop Shortcut

Eclipse all the way

You can run Java programs in the Linux terminal but that is tiresome. Use an IDE like Eclipse and speed up your coding process.

Eclipse is my favorite but there are other IDEs for Java you may explore.

If you are a dark theme fan, you can change the color theme in Eclipse using additional plugins. Enjoy coding with Eclipse.

For new Eclipse users, I recommend heading over to the official Eclipse website where you can find all kinds of documentation and guides

If you face any issues with the installation by following my procedure, make sure to let me know in the comments below.

Источник

Оцените статью
Adblock
detector