I also configured the environment after installing the JDK, and the configuration of the environment was fine. Finally, I downloaded Eclipse and opened it and found the error shown in the following figure:
Java was started but returned exit code=13
C:\ProgramData\Oracle\Java\javapath\javaw.exe
I searched the Internet first, and the answers I got were mostly unreliable. Then I checked over the wall geogel, and the answers I got were roughly in two aspects:
(1) There is a problem with the JDK environment
(2) The Jdk version is not consistent with the Eclipse version (Jdk is 32bit, Eclipse is 64bit or vice versa)
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:
-vm
C: \ Program Files \ Java \ jdk1.7.0 _60 \ bin \ avaw exe
It’s not adding
-vm
C:\ProgramData\Oracle\Java\javapath\javaw.exe
After the above sentence is added, restart Eclipse, and the following error is found:
Failed to load the JNI Shared Library “C:\Program Files (x86)\Java\ JDk1.8.0_101 \ JRE \bin\ Server
\jvm.dll
Therefore, I looked for errors such as Failed to load the JNI Shared Library. Generally, there are two cases:
1. There is a problem with the environment configuration of the JDK
2. JDK version not consistent with Eclispe (32-bit/64-bit)
So from our results above we can see that we have changed the configuration in Eclipse.ini and still can’t fix the problem. There is a new problem, which is probably the JDK and eclipse version.
According to the above methods, it turned out that the inconsistency between the version of my JDK and eclipse caused our initial problems. My operating system was 64-bit, eclipse was 64-bit, while the JDK was 32-bit. Finally, I downloaded a 64-bit JDK and started Eclipse as normal.
Resources from:
http://stackoverflow.com/questions/4587518/eclipses-error-on-startup-in-windows-7
http://www.myexception.cn/program/2036913.html
Read More:
- Java was started but returned exit code = 13
- Solutions to the problem of collect2: error: LD returned 1 exit status
- About the problem of collect2.exe [error] LD returned 1 exit status in dev!!!
- Idea stuck and error reported: UI was frozen for xxxxx MS problem solving
- An error was reported when idea compiles Java: no symbol was found_ How to solve this problem
- Win10 problem solving – there was a temporary DNS error. Try refreshing the page
- Solutions to the problem of “collect2.exe: error: LD returned 1” exit “status when writing C + + with vscode
- 12 days after the programmer was dismissed by the company, the former leader asked to go back to the company to explain the code clearly, but he was confused
- To solve the problem, start eclipse and return exit code = 13
- Solving Chinese garbled code in Java compressed file
- the module was loaded but the call to DllRegisterServer failed with error code 0x80020009
- Solving the problem of Chinese garbled code in qtring
- An error is reported when installing the package directly in pycharm, but it can be installed through the terminal. Error non zero exit code (2)
- Problem solving of failed to read candidate component class in Java
- The web application [ROOT] appears to have started a thread named [RxIoScheduler-1 (Evictor)] but ha
- Idea error: (4, 46) Java: package org.springframework.boot . autoconfigure does not exist problem solving
- Problem solving: this application cannot run under a virtual machine arcmapr, but you are not using a virtual machine
- After Nacos started, the client worker log was printed all the time
- Python’s importerror: DLL load failed: the specified module was not found and the problem was solved
- Git did not exit cleanly (exit code 128)