After I installed the JDK, the environment was also configured, and the configuration of the environment was not a problem. Finally I downloaded Eclipse and then opened it and found the error as shown:
Java was started but returned exit code=13
C:\ProgramData\Oracle\Java\javapath\javaw.exe
I first on the internet first time Baidu, get the answer is mostly not reliable, then I fqgeogel a bit, get the answer roughly two aspects:
(1) Problems with the JDK environment
(2) JDK version is inconsistent with Eclipse version (JDK is 32bit,eclipse 64bit or vice versa)
In the case of an error in the JDK environment, the general workaround is to add the following sentence to this file in the Eclipse.ini (and Eclipse same folder):
-vm
C:\Program Files\java\jdk1.7.0_60\bin\avaw.exe
is not added
-vm
C:\ProgramData\Oracle\Java\javapath\javaw.exe
After adding the above sentence, restart Eclipse, and then find the following error:
Failed to load the JNI shared library "C:\Program Files (x86) \java\jdk1.8.0_101\jre\bin\server
\jvm.dll
So I looked for a bit more about the failed to load the JNI shared library This type of error, generally there are two situations:
Problem with 1,JDK environment configuration
2,JDK inconsistent with Eclispe version (32-bit/64-bit)
So from the above results we can see that we have modified the Eclipse.ini in the configuration or do not solve the problem, there are new problems, the problem should be the JDK and Eclipse version of the problem.
Based on the above method, it turns out that the inconsistency between my JDK and eclipse caused the initial problem, I originally had a 64-bit OS, Eclipse was 64 bits, but the JDK did 32 bits, Finally, after downloading a 64-bit JDK, I can start eclipse normally.
Data reference from:
Http://stackoverflow.com/questions/4587518/eclipses-error-on-startup-in-windows-7
Http://www.myexception.cn/program/2036913.html
Java was started returned exit Code=13 problem resolution