Table of Contents
I began using Eclipse to develop application in 2005. Over the years I've used Europa, Ganymead, Galileo, Helios, Indigo, Juno, Kepler, Luna and Mars on the following platforms:
I have used the following JDKs for development over the years:
Note that in the Eclipse Mars timeframe, a formal installer was created for use with Eclipse. I have never used this (don't feel a need to) and so little to nothing in this page deals with that experience. However, the principle of a finished installation remains relevant.
Unless you're certain the platform you're installing requires a specially built Eclipse from the distributor, never obtain your Eclipse from anywhere but eclipse.org. (Please note that I do not use the Eclipse installer for Mars that came out in Spring 2015. I do not advise against it; I have just never used it.)
Choose an Eclipse package that's already as close to what you wish to do with it as possible:
Eclipse is a personal productivity tool. Unless you're doing something very clever, like setting it up in a classroom situation, resist the temptation to put it on paths like
Instead, put at:
In short, put it somewhere over which you have complete control and you will find bliss in your life.
If you're going to develop Java software, you must download a JDK because this is what gives you Javadoc in Eclipse ContentAssist. I do not download and install a JDK for my whole computer. I leave my computer's idea of a JRE to be whatever it wants. I let it install and update separately from my Eclipse usage. I have a peculiar way of setting up a JDK as illustrated here.
As noted and as you should see from my diagram, I do not blindly install a JDK over the top of whatever my computer is using as a Java Runtime Environment (JRE). I make a separate copy. This is so my host is not disturbed in the natural update of its JRE. That JRE gets updated whenever it wants to be. More than that, it is so that when I run Eclipse, I know what version of the JDK I'm running and it never changes unless and until I decide it will.
~/dev $ tar -zxf jdk-7u67-linux-x64.tar.gz ~/dev $ rm jdk-7u67-linux-x64.tar.gz ~/dev $ ll -d jdk1.7.0_67 drwxr-xr-x 8 russ russ 4096 Jul 25 10:51 jdk1.7.0_67Note that this isn't a zip on Windows, but a self-extracting archive with a .exe extension. At some point during extraction, you can choose where to put it (instead of clobbering the JRE installed on your Windows machine). Put it on a path such as the one(s) I suggested earlier—in a personal location under your user.
This is a rather more advanced undertaking so I won't illustrate it here, but give some links to notes to peruse. Why would you use this instead of Sun's JDK? Because your company, for whatever reason, has a legal or moral aversion to Oracle software. I usually use the Sun version, but I've had little trouble at all with the openJDK.
This is exactly what I need to run Eclipse. I just need to accomplish 2 things:
~/dev $ cat eclipse/eclipse.ini -startup plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar --launcher.library plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20130521-0416 -product org.eclipse.epp.package.jee.product --launcher.defaultAction openFile -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m --launcher.defaultAction openFile --launcher.appendVmargs -vm /home/russ/dev/jdk1.7.0_67/bin/java -vmargs -Dosgi.requiredJavaVersion=1.6 -XX:MaxPermSize=256m -Xms40m -Xmx512m
Window → Preferences → Javathen click on Installed JREs. I've been running JDK 1.7.0_45 and want to update it. (Even if this were the first installed JRE I was setting up, the steps would be the same.)
I install Tomcat separately from any I might have on my computer for the same reason I don't want Eclipse to use my host's JRE. Also, I use Eclipse to deploy my web applications to Tomcat, the one it knows about. I don't usually debug web applications on a formally running Tomcat.
Window → Preferences → Server → Runtime Environments.
Just JDKs, you can choose to tell Eclipse about as many as you wish. (You can also set up JBoss and other server containers too.) When you create a Server for the workspace, you can choose one or more of these, then launch them from the Servers view.
To use Tomcat or other server containers with Eclipse, you must have downloaded the Eclipse IDE for Java EE Developers package from eclipse.org or you can take the after-market route as described by How do I install WTP?.
Especially if upgrading past one or more versions, download and install the new version you want (not on top of your existing version), then start it and point to your existing workspaces.
You can save preferences from your existing Eclipse installation to a file, then restore (import) them into the new version.
If you had third-party plug-ins and want them in the new version, you must go through Help → Eclipse Marketplace to find and install them again.
The only thing needed to uninstall Eclipse, no matter what OS your host is running, is to remove the following artifacts: