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?

James Drinkard
  • 13,634
  • 14
  • 99
  • 132
Mohammad Abu Hmead
  • 623
  • 2
  • 7
  • 18

10 Answers10

44

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.

Sudip Bhandari
  • 1,639
  • 1
  • 22
  • 23
Brent Sandstrom
  • 801
  • 8
  • 16
12

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.

Anirudh Ramanathan
  • 43,868
  • 20
  • 121
  • 177
Mohammad Abu Hmead
  • 623
  • 2
  • 7
  • 18
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
chaosguru
  • 1,711
  • 3
  • 26
  • 40
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.

Community
  • 1
  • 1
tinocoam
  • 98
  • 1
  • 6
  • This was my case - it seems, that my 64-bit installation was updated by updater to 32-bit version :-/ – Betlista Nov 24 '15 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.

m00am
  • 4,974
  • 11
  • 45
  • 60
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.

Elijah
  • 11
  • 3
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

skipy
  • 3,494
  • 1
  • 20
  • 18
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.

sqluser
  • 5,145
  • 7
  • 32
  • 48
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}

nairb
  • 444
  • 1
  • 6
  • 9
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.

Îsh
  • 156
  • 3
  • 10