Daily Archives: May 6, 2018

22. DevOps:How to Install Eclipse on Ubuntu 16.04 [Linux]?

Eclipse-Neon 3

In my previous blog you have seen on the installation of;

Maven 3.3.9 [https://vskumar.blog/2018/05/05/21-devops-how-to-install-maven-3-3-9-on-ubuntu-linux/]

In this blog, I would like to demonstrate on the installation of Eclipse. [Neon.3 Release (4.6.3)].

Note:

At the bottom of this blog, I have pasted a video which demonstrates the installation of Eclipse Photon 2018 installation for Windows 10.

For Ubuntu installation, Let us follow the below steps:

Pre-requisites:

1. You need to have Ubuntu 16.04 [Linux] OS on your machine [VM or Laptop or Desktop].

2. You need to have JDK.

Now let us follow the below steps:

Step1: First, You need to make sure your system and apt package lists are fully up-to-date by running the following commands:

apt-get update -y

apt-get upgrade -y

 I have done it in my VM sometime back[not captured the scree output], hence I am not redoing it. Hence there is no screen output copied here

Step2: We need to Install Java.

Eclipse needs Java to be available on your machine. So, you need to  install  Java

To install JDK 8, Please follow my previous blog:

16. DevOps: How to setup jenkins 2.9 on Ubuntu-16.04 with jdk8

URL: https://vskumar.blog/2018/02/26/15-devops-how-to-setup-jenkins-2-9-on-ubuntu-16-04-with-jdk8/

Step 3: Now, let us Install Eclipse.

To install Eclipse for Ubuntu, We need to use the below commands:

We need to download the  tar file.

sudo wget http://artfiles.org/eclipse.org//oomph/epp/neon/R2a/eclipse-inst-linux64.tar.gz

==== Screen output =====>

vskumar@ubuntu:~$ sudo wget http://artfiles.org/eclipse.org//oomph/epp/neon/R2a/eclipse-inst-linux64.tar.gz

[sudo] password for vskumar:

–2018-05-05 18:06:49–  http://artfiles.org/eclipse.org//oomph/epp/neon/R2a/eclipse-inst-linux64.tar.gz

Resolving artfiles.org (artfiles.org)… 80.252.110.38, 2a00:1f78:af:11::2

Connecting to artfiles.org (artfiles.org)|80.252.110.38|:80… connected.

HTTP request sent, awaiting response… 200 OK

Length: 47107171 (45M) [application/x-gzip]

Saving to: ‘eclipse-inst-linux64.tar.gz’

eclipse-inst-linux6 100%[===================>]  44.92M  3.19MB/s    in 6m 3s

2018-05-05 18:12:54 (127 KB/s) – ‘eclipse-inst-linux64.tar.gz’ saved [47107171/47107171]

vskumar@ubuntu:~$

==== Downloaded Eclipse tar file =====>

You can see the file in the local folder:

== Eclipse tar file ====>

vskumar@ubuntu:~$ ls

ansplatform          eclipse-inst-linux64.tar.gz     Pictures

ansplatform1         examples.desktop                Public

data-volume1         flask-test                      snap

ddagent-install.log  hosts                           Templates

Desktop              jdk-9.0.4_linux-x64_bin.tar.gz  test-git

dockerfile           master-test.txt                 Videos

Documents            Music                           VSKTestproject1

Downloads            nano

vskumar@ubuntu:~$

===============>

Now, we need to extract the files from it using the below command:

tar xf eclipse-inst-linux64.tar.gz

== After extract you find eclipse-installer folder ===>

vskumar@ubuntu:~$ ls

ansplatform          eclipse-installer               nano

ansplatform1         eclipse-inst-linux64.tar.gz     Pictures

data-volume1         examples.desktop                Public

ddagent-install.log  flask-test                      snap

Desktop              hosts                           Templates

dockerfile           jdk-9.0.4_linux-x64_bin.tar.gz  test-git

Documents            master-test.txt                 Videos

Downloads            Music                           VSKTestproject1

vskumar@ubuntu:~$

=========================>

Now, let us goto eclipse-installer folder.

cd eclipse-installer

==== List of files for Eclipse install ====>

vskumar@ubuntu:~$ cd eclipse-installer

vskumar@ubuntu:~/eclipse-installer$ ls

artifacts.xml  eclipse-inst      features  p2       readme

configuration  eclipse-inst.ini  icon.xpm  plugins

vskumar@ubuntu:~/eclipse-installer$

===============================>

Now we need to use the install procedure with the below command:

sudo ./eclipse-inst

==When you execute the above command you can see the below display===>

a) You can see one GUI screen appears on your Unbuntu machine for Installer.

You can select the options you want to install.

Example: “Eclipse IDE for Java developers” is one of the options it displays. You need to  select it. If you want other options also you can do.

I have selected to install “Eclipse IDE for Java developers”.

It installs the required components.

b) You also need to accept its certificates.

c) Once it is installed you can see the installer folders displays on your ubuntu machine desktop.

You will be asked to select the Eclipse workspace folder also.

Where your programs/projects will be placed in that folder.

============================>

d) Finally, you can see Eclipse GUI Project window.

It is ready for use.

Now, you can use it for your Eclipse/Maven projects.

 

The below  video demonstrates the installation of Eclipse Photon 2018 installation for Windows 10.