Installing latest eclipse is not possible over local sudo apt-get install eclipse. This installs a older version. So Lets install the latest Eclipse Oxygen on Ubuntu- any platform, the method is tested for 16.04, however it will work for other versions aswell.
Go to http://www.eclipse.org/downloads/packages/
Select the appropriate IDE that you want to install, In our case we want a C++ version of Eclipse. Head over to Download
Select the platform- Linux 64 in my case.
Now it should start downloading.
Right Click on the Download file and Extract.
Move the Extracted File(Usually named as Eclipse) to the home folder.
Note: In Case Java is not installed follow below Steps:
Press Ctrl+Alt+T on your keyboard to open a terminal window in your Ubuntu PC. When it opens, copy and paste the command below and hitting enter button.Keep entering the password if prompted.
sudo add-apt-repository ppa:webupd8team/java
After that, update package lists via:
sudo apt-get update
To install Oracle Java 8, run:
sudo apt-get install oracle-java8-installer
To set the default Java, run:
sudo apt-get install oracle-java8-set-default
Check if the Java is Installed:
output will be like below:
Java version “1.7.0_60”
Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)
At this Point you can start using Eclipse. Head to Eclipse Folder Click on eclipse executable, it will launch eclipse.
If you want to ease out the installation for your further development for long term use follow the below commands:
Create a launcher shortcut.
Go to the Eclipse folder.
Create a Document,Open the Document and Paste the below code:
[Desktop Entry] Name=Eclipse Type=Application Exec=/home/USERNAME/eclipse/eclipse Terminal=false Icon=/home/USERNAME/eclipse/icon.xpm Comment=Integrated Development Environment NoDisplay=false Categories=Development;IDE; Name[en]=Eclipse
Rename it to eclipse.desktop
Right Click and goto Permissions-Click on allow executing this file as program.
Move the file to .local/share/applications by following below commands:
Open Terminal and Paste:
sudo mv /home/USERNAME/eclipse/eclipse.desktop .local/share/applications/
Replace USERNAME with your username
launcher file is now set for current user.
Now launch eclipse by double clicking on the executable in Home folder.
Click lock on to the Taskbar if you want shortcut.
Last thing is to create a symbolic link in the bin.
sudo ln -s ~/eclipse/eclipse /bin/
Now you should be able to run the eclipse from terminal aswell by entering eclipse.
Drop in comments in case of any errors.
You must be logged in to reply to this topic.