I updated my JRE today 23.06.2012, and after that eclipse will no longer start. When I double click to start up eclipse the splash screen appears like a camera flash and th
If facing problem with Eclipse regarding java, do a manual installation of Java on your machine ( http://java.com/en/download/manual.jsp ).
If you are using 64bit machine then you need to install java to c:\program files\java (Default Path)
instead of c:\program files (x86)\java
.
Set the environment variable path to c:\program files\java\bin;
And this will solve your problem.
This is what worked for me: Remove the lines:
-vmargs
-Dosgi.requiredJavaVersion=1.5
Add these two lines:
-vm
C:\Program Files\Java\jdk1.7.0_03\bin\javaw.exe
Edit the path to match your installation.
The ini file is generally present at $ECLIPSE_HOME/eclipse.ini
Eclipse ini file
Note: You'll need to change windows security settings to get access. I recommend you don't edit this type of file in notepad (use notepad++). Backup the file before you edit.
Verify if you have installed a different version of JDK/JRE from your Eclipse. If you have installed 64 bits JDK version and your Eclipse version is 32 bits, it won't work. They have to be equal.
To verify what is your java version, type at command line window:
java -d64 -version
If appears: "Error: This Java instance does not support a 64-bit JVM. Please install the desired version.", it means that your java version is 32 bits.
To verify what is your Eclipse version, see this post.
Right way is to replace following lines:
-vmargs
-Dosgi.requiredJavaVersion=1.5
with following two lines:
-vm
C:\Program Files\java\jdk1.8.0_102\bin\javaw.exe
You must edit the path to match your installation.
Even this is not enough. You must delete '.metadata' folder from your workspace.