3
votes

I have tried the following ways but they all do not work.

  1. Reinstall MyEclipse
  2. Reinstall java
  3. Use Eclipse
  4. Update java to 1.8.0_71
  5. Use short format of directory in the JDK path

Both my java and MyEclipse are 64bit. H: is not a network driver.

This is my screenshot


The following part is MyEclipse.ini

-startup

../Common/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar

--launcher.library

../Common/plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_64_4.2.0.v201201111650

-install

H:\MyE\MyEclipse 10

-vm

C:\Program Files\Java\jre1.8.0_71\bin\javaw.exe

-configuration

H:\MyE\MyEclipse 10\configuration

-vmargs

-Xmx512m

-XX:MaxPermSize=256m

-XX:ReservedCodeCacheSize=64m

-Dosgi.nls.warnings=ignore

2
Is your Java current ? What happens with Java 8 ? - Marged
Please execute this command java -version and tell us the output. - Bacteria
I have tried both java 7 and java 8, but neither of them works. - 刘乾宇
The output of "java - version" is java version "1.8.0_66" Java(TM) SE Runtime Environment (build 1.8.0_66-b18), Java Hotspot(TM) 64 bit server VM(build 25.66-b18, mixed mode) - 刘乾宇
What happens if you force Eclipse not to use javaw from C:\windows\system32 and reference a JDK / JRE directly ? And what is that -java H:\... stuff ? Try to remove it, especially the Unicode part could cause problems. And you should shorten your paths. Use "C:\dev\eclipse" or something shorter, not that lengthy path we can see in your screenshot - Marged

2 Answers

0
votes

Run the java update. I was having the same issue and pulling my hair out. There is an update today to Java 1.8.0_71 and now my Eclipse has not crashed.

fingers crossed

It has been open for like 4 minutes now :)

0
votes

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.