I am writing this post because when I had a go at installing the eclipse development platform I had a bit of trouble getting it installed and working. I would imagine that most people wouldn’t encounter this problem but I had real trouble finding any information on it so I thought I would post the fix.
To install eclipse you first download the zip from their website and extract it to wherever you want the program to be stored. There is no installer so you will want to create shortcuts etc. yourself. This can be easily done by right clicking and selecting the new shortcut option.
When I had unzipped I tried running the Eclipse.exe file however it produced an error saying
“A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available to run Eclipse. No Java virtual machine was found after searching the following locations:
location_of_script\jre\bin\javaw.exe”
This was surprising because I have a working installation of Sun Java that has been picked up by every other Java program that I have ever tried to run. Searching the internet didn’t turn up any obvious fixes however after a bit of searching I found out that there is a command line parameter that you can set to specify the location of your JRE.
So to fix this error you must first find you JRE. Mine was fairly easy to find, just by browsing the program files folder and looking in the Java folder and then the bin folder within that. If you have trouble then just run a search for “java.exe” and it should find it. Write down or copy the path of the java.exe file making sure oyu include \java.exe.
Now go back to the location of your eclipse installation and create a new shortcut to eclipse.exe (right click -> create shortcut). Now right click your shortcut and go to properties. In the target box go right ot the end of the string and then type:
-vm “MyJavaPath”
Where MyJavaPath is the path to your java.exe. So for example target ended up looking like this:
“C:\Documents and Settings\MyUsername\Desktop\eclipse-java- europa-fall2-win32\eclipse\eclipse.exe” -vm “C:\Program Files\ Java\jdk1.5.0_07\bin\java.exe”
Now you should be able to launch eclipse by running this shortcut. I have yet to find a way to get eclipse to remember where your java.exe is so you will have to use the shortcut to launch it for now.
I hope this helps some people who are having problems.