Java, IntelJ Idea and Eclipse installation on Linux-Ubuntu

How to install classic JDK (not open JDK), Eclipse and Intel J Idea in Ubuntu Linux ?

Step 1:  Download classic JDK (java development Kit) by link: https://www.oracle.com/java/technologies/downloads/archive/
Choose right version: I am using JDK 8u77 Java SE Development Kit 8u77 https://www.oracle.com/java/technologies/javase/javase8-archive-downloads.html
Java versions

Step 2: Copy downloaded file to opt-folder:

sudo cp jdk-8u77-linux-x64.tar.gz /opt/jdk-8u77-linux-x64.tar.gz

go to opt folder: cd /opt/

Step 3: give permissions to archived-file:

sudo chmod 0777 jdk-8u77-linux-x64.tar.gz

Step 4: extract archive-file:

sudo tar zxvf jdk-8u77-linux-x64.tar.gz

Step 5: Move to folder and give permissions:

cd jdk1.8.0_77
 sudo chmod -R 0755 jdk1.8.0_77

check Path: pwd
Path is /opt/jdk1.8.0_77

Step 6: Config change for JDK

implement command:

 sudo gedit ~/.bashrc

OR

 sudo vi ~/.bashrc

Put inside file 2 lines:

export JAVA_HOME=/opt/jdk1.8.0_77
export PATH=${PATH}:${JAVA_HOME}/bin

Java config for Linux
Don’t forget to save.

Installiation of Intel J IDEA

Step 1: Download Idea from official site.
https://www.jetbrains.com/idea/download/?section=linux

Step 2: Copy Idea file to opt-folder:

 cp ideaIU-2024.3.1.1.tar.gz /opt/ideaIU-2024.3.1.1.tar.gz

Step 3: Unpack file

 sudo tar zxvf ideaIU-2024.3.1.1.tar.gz

Step 4: start application:

cd idea-IU-243.22562.218/bin
 ./idea.sh

Installiation of Eclipse

Step 1: Download right version of Eclipse.
I recommend to download Eclipse EE – Its free and includes all kinds of Java development- desktop app or web-app
Eclipse IDE for Enterprise Java and Web Developers
https://www.eclipse.org/downloads/packages/
Eclipse dev

Step 2: Copy Idea file to opt-folder:

 sudo cp eclipse-jee-2024-12-R-linux-gtk-x86_64.tar.gz /opt/eclipse-jee-2024-12-R-linux-gtk-x86_64.tar.gz

Step 3: Unpack file

 cd opt
 ls - ltr
 sudo tar zxvf eclipse-jee-2024-12-R-linux-gtk-x86_64.tar.gz

Step 4: Give permissions to all files inside

cd opt/eclipse
sudo chmod -R 0755 opt/eclipse

Step 5: Start Eclipse app:

./eclipse

eclipse startUp dslab.us

Java Eclipse dslab.us

Post navigation