Eclipse IDE is one of the most adopted development environment tool for Developers. The most popular Eclipse product is Java Integrated Development Environment (IDE), but there are other pretty cool IDEs, including our C/C IDE, JavaScript/TypeScript IDE, PHP IDE, and more. In this short tutorial we will be looking at how you can install Eclipse IDE on CentOS 8 | RHEL 8 Linux system.
The Eclipse IDE package is not available in CentOS 8 | RHEL 8 Linux system default repositories. If you do a search for eclipse package you’ll not get any results matching IDE.
$ sudo dnf search eclipse
Last metadata expiration check: 0:44:07 ago on Thu 17 Sep 2020 10:32:43 AM EAT.
=========================== Summary Matched: eclipse ===========================
ee4j-parent.noarch : Parent POM file for Eclipse Enterprise for Java projects
On RHEL 8 you can get eclipse package by enabling the eclipse module:
sudo dnf module enable eclipse
sudo dnf install -y eclipse
Step 1: Install Java Runtime on CentOS 8 | RHEL 8
Java is required to run Eclipse IDE on CentOS | RHEL 8 Linux machine. You can easily install Java using the following commands:
sudo yum -y install java-11-openjdk-devel
Once Java is installed, confirm the version with java command line tool.
$ java -version
openjdk version "11.0.8" 2020-07-14 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.8 10-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.8 10-LTS, mixed mode, sharing)
If you want to change the default version of version use the alternatives command:
sudo alternatives --config java
Step 2: Install Eclipse IDE on CentOS 8 | RHEL 8
There are two common methods of installing Eclipse IDE on CentOS 8 | RHEL 8. One is using the installer and the other one is manually.
Method 1: Using Eclipse Installer Script
Download the Linux installer script.
wget http://ftp.yz.yamagata-u.ac.jp/pub/eclipse/oomph/epp/2020-09/R/eclipse-inst-linux64.tar.gz
Extract the installer:
$ tar xvf eclipse-inst-linux64.tar.gz
Change to the project folder and run the installer script.
$ cd eclipse-installer/
$ ./eclipse-inst
The installation window should be presented to you.
Choose the Eclipse IDE to install on CentOS 8/RHEL 8.
Set the installation folder and agree to create start menu entry.
You can then launch Eclipse IDE from your applications menu.
Method 2: Install Eclipse IDE on CentOS 8 | RHEL 8 Manually
The next step is downloading Eclipse IDE on CentOS 8 | RHEL 8 system. Check the latest releases on the downloads page. You can choose from Java, C/C , PHP, Web and JavaScript e.t.c.
--- Java IDE ---
wget http://mirror.ufs.ac.za/eclipse/technology/epp/downloads/release/2020-09/R/eclipse-java-2020-09-R-linux-gtk-x86_64.tar.gz
--- PHP IDE ---
wget http://mirror.ufs.ac.za/eclipse/technology/epp/downloads/release/2020-09/R/eclipse-php-2020-09-R-linux-gtk-x86_64.tar.gz
--- C/C IDE ---
wget http://mirror.ufs.ac.za/eclipse/technology/epp/downloads/release/2020-09/R/eclipse-cpp-2020-09-R-linux-gtk-x86_64.tar.gz
Once the file has been downloaded, extract it.
tar xvf eclipse-java-2020-09-R-linux-gtk-x86_64.tar.gz
Move the resulting folder to /opt directory:
sudo mv eclipse /opt
Create a Symlink for the Eclipse executable.
sudo ln -sf /opt/eclipse/eclipse /usr/bin/eclipse
Create a Gnome Launcher menu.
sudo tee /usr/share/applications/eclipse.desktop<<EOF
[Desktop Entry]
Encoding=UTF-8
Name=Eclipse IDE
Comment=Eclipse IDE
Exec=/usr/bin/eclipse
Icon=/opt/eclipse/icon.xpm
Categories=Application;Development;Java;IDE
Version=1.0
Type=Application
Terminal=0
EOF
Then launch the application from the terminal or Desktop Applications menu.
$ eclipse
Check below Java & PHP programming courses:
<img data-ezsrc="https://kirelos.com/wp-content/uploads/2020/09/echo/icon_udemy-com.png5f649f659057c.jpg" ezimgfmt="rs rscb8 src ng ngcb8" src="data:image/svg xml,”>Udemy.com
<img data-ezsrc="https://kirelos.com/wp-content/uploads/2020/09/echo/icon_udemy-com.png5f649f659057c.jpg" ezimgfmt="rs rscb8 src ng ngcb8" src="data:image/svg xml,”>Udemy.com
<img data-ezsrc="https://kirelos.com/wp-content/uploads/2020/09/echo/icon_udemy-com.png5f649f659057c.jpg" ezimgfmt="rs rscb8 src ng ngcb8" src="data:image/svg xml,”>Udemy.com
<img data-ezsrc="https://kirelos.com/wp-content/uploads/2020/09/echo/icon_udemy-com.png5f649f659057c.jpg" ezimgfmt="rs rscb8 src ng ngcb8" src="data:image/svg xml,”>Udemy.com