Tuesday, October 6, 2015
How to setup Eclipse for Java development
If you already have Eclipse
If you have some version of eclipse already installed, you can update it and add Java directly.For that you just have to do this:
- Find your version URL. My eclipse version is Juno, so the URL I will need is:
- Open Eclipse and go to Help and choose Install New Software;
- Paste the URL of your version and wait for the list of softwares available to load;
- Under "Programming Languages" select "Eclipse Java Development Tools";
- Press Next and after completing the installation you are done.
If you don't have Eclipse installed
Windows Users
Installing JDK
- Go to the downloads page;
- Select Accept License Agreement and download the version according to your system (in my case 64-bit);
- Install JDK using the setup you just downloaded.
Installing Eclipse
- Download Eclipse and extract the .zip;
- You should now have a folder called "eclipse", rename it to "eclipse-java";
- Copy the folder and paste it to "C:\Program Files" (or "C:\Program Files (x86)" if your system is 32-bit);
- [Optional] You can now create a shortcut to eclipse. In order to do that, right-click on "eclipse.exe" and select copy. After that go to your desktop, right-click anywhere and click Paste shortcut.
That's it for Windows users!
[Optional] You can now create a shortcut to eclipse.
Ubuntu Users
Installing JDK
- Ubuntu already comes with JDK installed, so you need not worry about that.
Installing Eclipse
- Download Eclipse and extract the .zip;
- You should now have a folder called "eclipse", copy that folder to /opt/;
- Open the Terminal: CTRL + ALT + T;
- Type:
- sudo ln -s /opt/eclipse-java/eclipse /usr/bin/eclipse
- sudo gedit /usr/share/applications/eclipse.desktop
- After these commands, gedit (text editor) should have opened. Now copy this and paste it there:
[Desktop Entry]
Version=4.3.0
Name=Eclipse
Comment=IDE for all seasons
#Exec=/opt/eclipse-java/eclipse
Exec=env UBUNTU_MENUPROXY=0 /opt/eclipse/eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=Utility;Application
- Save the text file and close gedit;
- This should have successfully created a shortcut. You may have to log off and back in for it to appear.
And that's it!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment