

Solutions to the problem of collect2: error: LD returned 1 exit status.Java was started but returned exit code = 13.Finally, I downloaded a 64-bit JDK and started Eclipse as normal. My operating system was 64-bit, eclipse was 64-bit, while the JDK was 32-bit. There is a new problem, which is probably the JDK and eclipse version.Īccording to the above methods, it turned out that the inconsistency between the version of my JDK and eclipse caused our initial problems. So from our results above we can see that we have changed the configuration in Eclipse.ini and still can’t fix the problem. JDK version not consistent with Eclispe (32-bit/64-bit) There is a problem with the environment configuration of the JDKĢ. Therefore, I looked for errors such as Failed to load the JNI Shared Library. If a JDK environment error occurs, the general solution is to add the following sentence to the eclipse.ini (the same folder as Eclipse) file:Ĭ: \ Program Files \ Java \ jdk1.7.0 _60 \ bin \ avaw exeĪfter the above sentence is added, restart Eclipse, and the following error is found:įailed to load the JNI Shared Library “C:\Program Files (x86)\Java\ JDk1.8.0_101 \ JRE \bin\ Server (2) The Jdk version is not consistent with the Eclipse version (Jdk is 32bit, Eclipse is 64bit or vice versa) (1) There is a problem with the JDK environment Then I checked over the wall geogel, and the answers I got were roughly in two aspects: I searched the Internet first, and the answers I got were mostly unreliable. Java was started but returned exit code=13Ĭ:\ProgramData\Oracle\Java\javapath\javaw.exe Finally, I downloaded Eclipse and opened it and found the error shown in the following figure: I also configured the environment after installing the JDK, and the configuration of the environment was fine.
