When you just opened eclipse, an error window appears.
1. Look at the Java version, found in the 1.8 version, remember that you manually installed before the Java should be 1.7 or lower version. Reminds me that the system always reminds the Java to have the update, recently did not receive the reminder. The installation should be selected after a reminder.
Java-version
Java Version "1.8.0_45"
Java (TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot (TM) Client VMs (build 25.45-b02, mixed mode, sharing)
2.win7 install the which command, view the default directory for Java.exe
GNUWIN32 packages has which, click Setup to download the installation files, install. There will be an error message when the installation is complete. However, after use, the error hints do not affect the use of which.
which Java
C:\ProgramData\Oracle\Java\javapath\java. Exe
3. Delete the C:\ProgramData\Oracle\Java\javapath directory in the path of the environment variable
Look closely at the values of each environment variable in path, and discover that the environment variables for Java 7 that you wrote earlier are behind C:\ProgramData\Oracle\Java\javapath, and Windows C:\ProgramData\Oracle\ After finding Java.exe in Java\javapath, no further searches are made.
http://stackoverflow.com/a/26709519/1767800
Eclipse cannot open, error "Java was started with exit code=13"