Hello everyone!
Hope this guide will be helpful for some people.
Lets start!
Before installing Eclipse we should have Oracle JDK installed in our system.
On Ubuntu it is very easy. Open terminal and enter following commands
Code:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java8-set-default
Now we have Oracle JDK 8 installed in our system.
To check it you can run this command
Code:
java -version
Output should be like
Code:
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
Now we will extract eclipse to /opt folder
Code:
sudo tar -xvzf ~/Downloads/eclipse* --directory /opt/
After extracting eclipse we should create a eclipse shortcut in unity launcher
Code:
sudo gedit /usr/share/applications/eclipse.desktop
Copy and paste all to the gedit window
Code:
[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
Save and close gedit.
Your all done installing latest eclipse in your Ubuntu!