Question:

When I try to open Eclipse, a pop-up dialog says.

Failed to load the JNI Shared library “C: / JDK/bin/client/JVM. DLL”. `

After this, Eclipse was forced to shut down.

Here are a few reasons I’d like to mention:

I checked to see if there was anything on that path, and it did; both my Eclipse and Java SE development kits are 64-bit; I checked that my system can handle 64-bit. I did a search on Google and Stack Overflow for this question, and the only answer I found was that downloading the 32-bit version of the JDK and Eclipse is something I only want to do if I have to. Any suggestions for solving this problem?

answer

Working pairing of JDK and Eclipse in the operating system. 32-bit operating system | 32-bit JDK | 32-bit Eclipse (32-bit only). A 64 – bit operating system | 32-bit JDK | 32-bit Eclipse 64 – bit operating system | 64 JDK | 64 Eclipse (64 only). I installed several JDK and JRE.

Each of them has its own entry in the PATH variable and is more or less working.

From the perspective of the PATH variable, some installed programs are completely useless because they are never used. Of course, I can manually reference “inactive” Javas from Eclipse if I want to, but I’ve never done that, so I really don’t need them. At least that’s what I thought……)

I cleaned up the mess and uninstalled all the current Java except JDK + JRE 1.7 64-bit.

Later, one of the Eclipse “installs” fails, with “failed to load the JNI shared library” and what it thinks is the relative path of the JVM.dll in the newly installed JDK.

Eclipse, which failed, is the only IDE I have that is still 32-bit in all of my 64-bit setups.

As often mentioned, adding virtual machine parameters to Eclipse.ini doesn’t work for me (because I only have the wrong JDK/JRE associated with it.

I also can’t find out how to check whether the Eclipse is a 32-bit or 64-bit version (I can’t look it up in task manager because the Eclipse “installation” won’t start. And since I haven’t set it up in a while, I can’t remember its version either).

If you use the new JDK and JRE older, you may get into trouble, but this is more likely to be Java lang. UnsupportedClassVersionError, committee.

Translation content sources Stack Overflow:stackoverflow.com/questions/7…