Eclipse:未能加载JNI共享库“C:\程序文件(x86)\Java\jdk1.7.0_15\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \

时间:2022-09-17 00:18:09

I'm trying to install Eclipse. I have done the following in order to install.

我正在尝试安装Eclipse。为了安装,我做了以下操作。

  • Installed JDK 7u15 64 bit (actual download name:jdk-7u15-windows-i586.exe) in C:\Program Files(x86)\Java\JDK 1.7.0_15

    在C:\程序文件(x86)\Java\JDK 1.7.0_15中安装JDK 7u1564位(实际下载名称:JDK -7u15-windows-i586.exe)。

  • I Ran cmd in administrator and typed "C:\Users\Alfred>java -version" which gave me "Java version "1.7.0_15" java(TM) SE Runtime Enviroment (build 1.7.0_15-b03) Java Hotspot(TM) Client VM (build 23.7-b01, mixed mode, sharing)

    我在管理员处运行cmd,并键入“C:\Users\Alfred>java -version”,它给了我“java版本”1.7.0_15“java(TM) SE运行时环境(build 1.7.0_15-b03) java Hotspot(TM)客户端VM(构建23.7-b01,混合模式,共享)。

  • In the same cmd window i typed "C:\Users\Alfred>javac -version" which gave me "javac 1.7.0_15"
  • 在相同的cmd窗口中,我输入了“C:\Users\Alfred>javac -version”,它给了我“javac 1.7.0_15”。

Both these last two points should mean my path is set to the right place correct?

最后这两点应该意味着我的路径被设置到正确的位置了吗?

  • I downloaded eclipse IDE for Java developers 64 bit (actual download name:eclipse-java-juno-SR1-win32-x86_64.zip) and unzipped it to my desktop

    我为Java开发人员下载了eclipse IDE 64位(实际的下载名称:eclipse- Java -juno- sr1 -win32-x86_64.zip),并将其解压缩到我的桌面上。

  • I've tripled checked that my system is 64 bit(Start>Control Panel>System>System type:64 bit operating system)

    我已经检查了我的系统是64位(开始>控制面板>系统>系统类型:64位操作系统)

  • I've found and deleted java.exe and javaw.exe from C:\windows\system32 which resolved the error message "C:\Program Files\Java\jre7\lib\amd64\jvm.cfg'

    我找到并删除了java。exe和javaw。来自C:\windows\system32,解决了错误信息“C:\程序文件\ \ \ \ \ \ \ \ \ \ \ \ \jvm.cfg”

My problem as of now is the following error message when i try to start eclipse:

我现在的问题是,当我尝试开始eclipse时,会出现以下错误消息:

  • Failed to load the JNI shared library "C:\Program Files(x86)\Java\jdk1.7.0_15\bin..\jre\bin\client\jvm.dll
  • 未能载入JNI共享库“C:\程序文件(x86)\Java\jdk1.7.0_15\bin. \ \bin\ \ \ \ \ \ \ \ \ \ \ \ \jvm.d。

I've made sure that this .dll file is there. I have looked around and everyone says to make sure everything is 64 bit. I have no clue what to do now. How I fix? Any and all help is greatly appreciated.

我已经确定了这个。dll文件在那里。我环顾四周,每个人都说要确保每件东西都是64位。我不知道现在该怎么办。我如何解决?非常感谢您的帮助。

7 个解决方案

#1


11  

jdk-7u15-windows-i586.exe is not 64bit.

jdk-7u15-windows-i586。exe不是64位。

Reinstall Java 7 for 64 bits.

将Java 7重新安装64位。

#2


7  

If you have 64bit java installed (you are running 64bit windows and you have c:\program files\java\jre7 for example - not program files (x86)!) but you still get this error, it is likely that the first java on your path is 32bit.

如果您安装了64位java(您正在运行64位windows,并且有c:\程序文件\java\jre7,而不是程序文件(x86)!)但是您仍然会得到这个错误,您的路径上的第一个java可能是32位。

(You can check this by running java -version from cmd.exe, if you don't see the text 64-bit [eg Java HotSpot(TM) 64-Bit] then you have 32bit java first on your path.)

(您可以通过运行java -版本的cmd来检查它。exe,如果您没有看到64位的文本(如Java HotSpot(TM) 64位),那么您将在路径上首先拥有32位Java。

If you have many copies of eclipse (perhaps for blackberry 7 development) then changing your path(s) to point to the 64bit java could cause you big headaches.

如果您有许多eclipse(可能是黑莓7开发)的副本,那么改变您的路径(s)指向64位java可能会导致您头疼。

Instead, you can edit the eclipse.ini file (in the eclipse directory of the Android SDK) and add the following lines:

相反,您可以编辑eclipse。ini文件(在Android SDK的eclipse目录中)并添加以下代码:

-vm
C:\Program Files\Java\jre7\bin\javaw.exe

Below they are shown in the context of the whole file:

下面是整个文件的上下文:

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120913-144807
-product
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256M
-showsplash
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
C:\Program Files\Java\jre7\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx768m
-Declipse.buildId=v22.2.1-833290

This instructs eclipse.exe where it can find the java VM, without relying on the system environment variables.

这指示eclipse。exe,它可以在不依赖系统环境变量的情况下找到java VM。

#3


1  

In addition to installing a 64-bit JVM, you may also need to modify your system path in order to override whatever JVM is pointed from Windows\System32. Just reference in the path the \bin directory of your JVM instalation before Windows\System32.

除了安装一个64位的JVM之外,您还可能需要修改您的系统路径,以覆盖Windows\System32所指向的任何JVM。在Windows\System32之前的JVM instalation的\bin目录中引用。

#4


1  

It worked for me too, I had installed 32-bit JDK on my 64-bit OS, now I updated my JDK with 64-bit.. got the issue resolved like charm..

它对我也有用,我在64位操作系统上安装了32位的JDK,现在我更新了我的JDK 64位。这个问题像魅力一样被解决了。

I learnt that 32-bit JDK will still work fine on a 64-bit OS without any issue, until you install an application of 64-bit..

我了解到,32位JDK在64位OS上仍然可以正常工作,除非您安装64位的应用程序。

#5


0  

This could be conflict from multiple JDK versions installed (includes auto updates )on the host machine. Try un-install duplicate update version and it works.Eclipse:未能加载JNI共享库“C:\程序文件(x86)\Java\jdk1.7.0_15\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \

这可能是在主机上安装了多个JDK版本(包括自动更新)的冲突。尝试卸载重复更新版本,它可以工作。

#6


0  

The most reliable fix is to add the JVM location in eclipse.ini:

最可靠的解决方法是在eclipse.ini中添加JVM位置。

-vm 
C:/Program Files/Java/jdk1.8.0_112/jre/bin/server/jvm.dll

Important: These two lines must come before -vmargs and after org.eclipse.platform.
Do not use quotes; spaces are allowed.

重要:这两条线必须在-vmargs和after org.eclipse.platform之前出现。不使用引号;空间是允许的。

#7


0  

This error is due to the mismatch of version Eclipse and JDK installation. Either your Eclipse is in 32-bit and JVM on 64-bit or vice versa.

这个错误是由于版本Eclipse和JDK安装的不匹配造成的。您的Eclipse是32位的,JVM是64位的,反之亦然。

#1


11  

jdk-7u15-windows-i586.exe is not 64bit.

jdk-7u15-windows-i586。exe不是64位。

Reinstall Java 7 for 64 bits.

将Java 7重新安装64位。

#2


7  

If you have 64bit java installed (you are running 64bit windows and you have c:\program files\java\jre7 for example - not program files (x86)!) but you still get this error, it is likely that the first java on your path is 32bit.

如果您安装了64位java(您正在运行64位windows,并且有c:\程序文件\java\jre7,而不是程序文件(x86)!)但是您仍然会得到这个错误,您的路径上的第一个java可能是32位。

(You can check this by running java -version from cmd.exe, if you don't see the text 64-bit [eg Java HotSpot(TM) 64-Bit] then you have 32bit java first on your path.)

(您可以通过运行java -版本的cmd来检查它。exe,如果您没有看到64位的文本(如Java HotSpot(TM) 64位),那么您将在路径上首先拥有32位Java。

If you have many copies of eclipse (perhaps for blackberry 7 development) then changing your path(s) to point to the 64bit java could cause you big headaches.

如果您有许多eclipse(可能是黑莓7开发)的副本,那么改变您的路径(s)指向64位java可能会导致您头疼。

Instead, you can edit the eclipse.ini file (in the eclipse directory of the Android SDK) and add the following lines:

相反,您可以编辑eclipse。ini文件(在Android SDK的eclipse目录中)并添加以下代码:

-vm
C:\Program Files\Java\jre7\bin\javaw.exe

Below they are shown in the context of the whole file:

下面是整个文件的上下文:

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120913-144807
-product
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256M
-showsplash
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
C:\Program Files\Java\jre7\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx768m
-Declipse.buildId=v22.2.1-833290

This instructs eclipse.exe where it can find the java VM, without relying on the system environment variables.

这指示eclipse。exe,它可以在不依赖系统环境变量的情况下找到java VM。

#3


1  

In addition to installing a 64-bit JVM, you may also need to modify your system path in order to override whatever JVM is pointed from Windows\System32. Just reference in the path the \bin directory of your JVM instalation before Windows\System32.

除了安装一个64位的JVM之外,您还可能需要修改您的系统路径,以覆盖Windows\System32所指向的任何JVM。在Windows\System32之前的JVM instalation的\bin目录中引用。

#4


1  

It worked for me too, I had installed 32-bit JDK on my 64-bit OS, now I updated my JDK with 64-bit.. got the issue resolved like charm..

它对我也有用,我在64位操作系统上安装了32位的JDK,现在我更新了我的JDK 64位。这个问题像魅力一样被解决了。

I learnt that 32-bit JDK will still work fine on a 64-bit OS without any issue, until you install an application of 64-bit..

我了解到,32位JDK在64位OS上仍然可以正常工作,除非您安装64位的应用程序。

#5


0  

This could be conflict from multiple JDK versions installed (includes auto updates )on the host machine. Try un-install duplicate update version and it works.Eclipse:未能加载JNI共享库“C:\程序文件(x86)\Java\jdk1.7.0_15\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \

这可能是在主机上安装了多个JDK版本(包括自动更新)的冲突。尝试卸载重复更新版本,它可以工作。

#6


0  

The most reliable fix is to add the JVM location in eclipse.ini:

最可靠的解决方法是在eclipse.ini中添加JVM位置。

-vm 
C:/Program Files/Java/jdk1.8.0_112/jre/bin/server/jvm.dll

Important: These two lines must come before -vmargs and after org.eclipse.platform.
Do not use quotes; spaces are allowed.

重要:这两条线必须在-vmargs和after org.eclipse.platform之前出现。不使用引号;空间是允许的。

#7


0  

This error is due to the mismatch of version Eclipse and JDK installation. Either your Eclipse is in 32-bit and JVM on 64-bit or vice versa.

这个错误是由于版本Eclipse和JDK安装的不匹配造成的。您的Eclipse是32位的,JVM是64位的,反之亦然。