Installing Eclipse Kepler IDE in Ubuntu 14.04 is simple. It is not hard as it looks like. Now I am going to tell you an easy way of doing it step by step.
Step 1: First make sure that you have Java installed in your computer.
For this, just open the terminal and type
java -version
If you have Java installed, you will see this.
If you don't see something similar to this, you will have to install Java first before using Eclipse in your machine.
For this purpose, you can follow the following steps.
1. In Ubuntu, you have the Ubuntu software center from where you can install OpenJDK
(Open Java Development Kit) which is a free and open source implementation of the Java Platform, Standard Edition (Java SE).
2. Click on the option to install OpenJDK Java 7 Runtime for this as shown in the figure above.
3. Now Java will get installed in your computer. You can verify it by typing java -version command as above in the terminal.
Step 2: Now download the Eclipse Kepler SR2 Package required.
Click on this link https://eclipse.org/downloads/packages/release/Kepler/SR2. This will take you to the Eclipse website which contains the Eclipse Kepler packages for downloading. Select the Eclipse Standard 4.3.2 option. Select 32-bit or the 64-bit option in front of Linux, depending on your computer. Now the eclipse package will get downloaded.
Step 3: Now you can install eclipse in your computer.
First yo need to extract the downloaded package of Eclipse to /opt directory so that you can access eclipse from anywhere using the following command.
cd /opt/ && sudo tar -zxvf ~/Downloads/eclipse-*.tar.gz
From ~/Downloads/eclipse-*.tar.gz what I meant was the path to what you have downloaded from the website in the previous step. You can replace the path depending on where you have it. Otherwise this would be the default. Don't worry. Just type the given command as it is, in the terminal.
Step 4: It will be easier for you if a launcher shortcut is created.
Now type this command in the terminal.
sudo gedit /usr/share/applications/eclipse.desktop
This will launch the text editor. Now you can copy and paste what is given below into it.
[Desktop Entry]
Name=Eclipse 4
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
Name=Eclipse 4
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
You don't have to change anything in it. Now save the document. Now you are actually done. :)
Step 5: Launch eclipse
Type the word Eclipse in the search bar and click on the Eclipse icon that you can see as in the figure below. This will now launch Eclipse. You are finally done. Cheer up. :)
Nice article Tharika,
ReplyDeleteJust mentioning I think it's better to install oracle Java than Openjdk. I faced problems while using the OpenJDK.
Thank you Menuka. Yes that is true that you might face some problems when using openJDK because you can't use it for everything. I will soon post another blog article on how to install Oracle JDK in Ubuntu.
DeleteIt says An error occured see log file in .eclipse. How to solve it?
ReplyDeleteAn error has occurred. See the log file
Delete/home/shraddha/.eclipse/org.eclipse.platform_4.3.2_1473617060_linux_gtk_x86_64/configuration/1598933467787.log.