24

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 then nothing happens.

Any ideas as to how to fix this?

3
  • its a bit hard to say without any additional infos, but I would try to arbitrary set the new VM on eclipse ini (wiki.eclipse.org/Eclipse.ini). Jun 23, 2012 at 9:57
  • 3
    Although it's off-topic for this site, please remember always to add version names and numbers of you operating system, your eclipse and your previous and actual JRE. Help us to help you :) Jun 23, 2012 at 10:01
  • Unzip a new elipse and use a fresh workspace Jun 23, 2012 at 10:02

10 Answers 10

43

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.

4
  • 1
    Everbody said that u only have to add the path but that alone didn't worked for me then I have to remove -vmargs -Dosgi.requiredJavaVersion=1.5 and now it works. Apr 11, 2016 at 14:38
  • 1
    Thanks for posting this! This one had me stumped. Jul 19, 2016 at 19:31
  • 1
    The file in question is eclipse.ini
    – Kyle Julé
    Sep 15, 2016 at 15:54
  • @PrinceVijayPratap Yes, you have to remove the version which is not present in your system anymore. Mar 28, 2017 at 19:15
13

I just added this line to the eclipse.ini file

-vm
C:\Program Files\Java\jdk1.7.0_03\bin\javaw.exe

The solution on my blog and it is now running successfully.

4

check if the java\bin path is added in the path and inside the eclipse installation folder, there is a file called eclipse.ini and check if the vmargs are added like below.

-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms512m
-Xmx1024m
2
  • I changed it to 1.4.0_03 and there is no actions C:\Program Files\Java\jdk1.7.0_03 Jun 23, 2012 at 10:36
  • do you mean that when you change to 1.4.0_03 your eclipse starts correctly?
    – chaosguru
    Jun 23, 2012 at 10:37
2

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.

1
  • This was my case - it seems, that my 64-bit installation was updated by updater to 32-bit version :-/
    – Betlista
    Nov 24, 2015 at 19:51
1

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.

1

I had the same challenge after i updated from java . After searching the web. I used this simple solution. Find your eclipse installation direction. Mine was under C:\Users\adefemi\eclipse\jee-neon\eclipse

Then open ecliipse.ini, go to the line that looks like this one C:/Program Files/Java/jre1.8.0_144/bin

Change the version name accordingly. For instance mine was previously C:/Program Files/Java/jre1.8.0_121/bin

That was all i had to do and eclipse started opening again.

0

check your JAVA_HOME environment variable. Does it point to the new location. Also see log file generated as a result of the crash

1
  • There is no crash log file in my eclipse folder Jun 23, 2012 at 10:31
0

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.

0
0

USING THE LATEST JAVA UPDATE TOOL.

Let say you updated thru http://java.com/en/download/installed8.jsp then you just ran down thru the update process of Java and just next next the update process of Java then opening up eclipse you encountered the same issue here.

To fix this go to Environment Variables of Windows and check the "Path" variable you could notice that the Java update process added an entry similarly like this "C:\ProgramData\Oracle\Java\javapath" remove this and add "JAVA_HOME" if you have one or the location of your Java. Also note that you must enter at the start of the "Path" environment.

This happens to me and removing the added entry of Java update resolve the issue and adding also the -vm and path of the Java in the eclipse.ini.

{Sorry don't have any screenshots to prove it}

0

Once Java updates are installed on your machine edit the eclipse.ini file to update the latest jdk location.

In MacOS,

  1. Right click on Eclipse App icon.
  2. Click Show Package Contents.
  3. Go to Contents/Eclipse.
  4. Open eclipse.ini file.
  5. Edit the -vm /Library/Java/JavaVirtualMachines/jdk1.8.0_251.jdk/Contents/Home/jre/bin to point to the latest.
  6. Save and close eclipse.ini.

Now start Eclipse application and the error got fixed.

Not the answer you're looking for? Browse other questions tagged or ask your own question.