Java was started but returned exit Code=13 problem resolution

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.