Operating System : Ubuntu Xenial Xerus (16.04)
IDE : Eclipse Mars 2
Java Runtime Environment : 1.8.0
Installing Eclipse Mars 2 on Ubuntu 16.04 (Ubuntu Xenial Xerus)
One of the most favorite IDE (Integrated Development Environment) for developing systems or applications using Java Programming Language is by using Eclipse. Eclipse itself is an open source software.
Eclipse is an essential tools for Java Developer to developer their systems or applications since it provides several features which is needed for the development process.
Below are the steps which is needed to do in order to install Eclipse Mars 2 :
- Java Runtime Environment version 1.7 or above is installed. Below is how we do it in Ubuntu Linux Distribution or on many UNIX or Linux operating system distributions :
username@hostname:~# java -version java version "1.8.0_05" Java(TM) SE Runtime Environment (build 1.8.0_05-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode) You have new mail in /var/mail/root username@hostname:~#
- Since the prerequisite as shown in point 1 is already fulfilled, we can proceed to the next step which is downloading the Eclipse file installer. In the time this article is posted, we can access the file to be downloaded in the following link : https://eclipse.org/downloads. By accessing the link itself, we will be directed to the Eclipse IDE download pages consisting several links containing all version and type of Eclipse IDE based on the architecture of the PC where Eclipse can be installed and even based on the programming language which is supported to be used with the Eclipse IDE.
- We can directly download it from Web browser or just copy the download link and then download it later with any kind of download utility software.
- After downloading the installer file, extract it since most of them especially in UNIX or Linux distribution, the Eclipse installer file is provided in compression format, either in zip or tar.gz format. Below is the example of uncompressing the Eclipse Mars 2 installation file :
username@hostname:/home/username# tar -zxvf eclipse-java-mars-2-linux-gtk-x86_64.tar.gz ... ... eclipse/p2/org.eclipse.equinox.p2.core/ eclipse/p2/org.eclipse.equinox.p2.core/cache/ eclipse/p2/org.eclipse.equinox.p2.core/cache/artifacts.xml eclipse/p2/org.eclipse.equinox.p2.core/cache/binary/ eclipse/p2/org.eclipse.equinox.p2.core/cache/binary/epp.package.java.executable.gtk.linux.x86_64_184.108.40.20660218-0600 eclipse/p2/org.eclipse.equinox.p2.core/cache/binary/org.eclipse.platform.ide.executable.gtk.linux.x86_64_4.5.2.M20160212-1500 eclipse/p2/org.eclipse.equinox.p2.core/cache/binary/org.eclipse.rcp_root_4.5.2.v20160212-1500 eclipse/p2/org.eclipse.equinox.p2.core/cache/binary/org.eclipse.platform_root_4.5.2.v20160212-1500 username@hostname:/home/username#
- To be able to run Eclipse IDE just execute the following command inside the already extracted Eclipse IDE file installer :
./eclipse username@hostname:~$ ./eclipse Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0 org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized. Will retry after the state location is initialized.
The ./ is a command to execute script which is followed after the character itself. We have to make sure that the script itself, in this context ‘eclipse’ is executable.
After executing the above command, the Eclipse Mars 2 Splash Screen will then appears as follows :
- After finishing the loading process which is symbolized with the Eclipse Mars 2 splash screen shown above, the Eclipse IDE Window will appears as follow :
And the installation process is finished.