After installing Oracle JDK 7.0 and 8.0 for Mac OS X, the Eclipse startup reports an error.
After installing Oracle JDK 7.0 and 8.0 for Mac OS X, start Eclipse and report an error directly.
The JVM shared library "/Library/Java/JavaVirtualMachines/jdk1.8.0 _ 25.jdk/ Contents/Home/bin/../jre/lib/server/libjvm. dylib"
Does not contain the JNI_CreateJavaVM symbol.
Unable to find any JVMs matching architecture "i386 ".
Eclipse [526: 14077] Error loading/Library/Java/JavaVirtualMachines/jdk1.8.0 _ 25.jdk/ Contents/MacOS/libjli. dylib: dlopen (/Library/Java/JavaVirtualMachines/jdk1.8.0 _ 25.jdk/ Contents/MacOS/libjli. dylib, 265): no suitable image found. did find:
/Library/Java/JavaVirtualMachines/jdk1.8.0 _ 25.jdk/ Contents/MacOS/libjli. dylib: mach-o, but wrong architecture
Since wrong architecture error is reported, let's see what the two files are like:
Run lipo-info/Library/Java/JavaVirtualMachines/jdk1.8.0 _ 25.jdk/ Contents/Home/bin/../jre/lib/server/libjvm. dylib
Ubuntures in the fat file:/Library/Java/JavaVirtualMachines/jdk1.8.0 _ 25.jdk/ Contents/Home/bin/../jre/lib/server/libjvm. dylib are: x86_64
And lipo-info/Library/Java/JavaVirtualMachines/jdk1.8.0 _ 25.jdk/ Contents/MacOS/libjli. dylib
Non-fat file:/Library/Java/JavaVirtualMachines/jdk1.8.0 _ 25.jdk/ Contents/MacOS/libjli. dylib is architecture: x86_64
Clearly shows architecture: x86_64. Therefore, the real root cause is found because Eclipse is 32-bit and Oracle JDK 7.0 and 8.0 are 64-bit. The solution is simple, download Eclipse 64-bit For Mac OS X.
Because the execution result of/Library/Java/JavaVirtualMachines/jdk1.8.0 _ 25.jdk/ Contents/Home/bin/java-d32-version is:
Error: This Java instance does not support a 32-bit JVM.
Please install the desired version.
Reference https://bugs.eclipse.org/bugs/show_bug.cgi? All solutions such as id = 411361 are futile, and the 64-bit version of Eclipse is the right path.
Install Eclipse CDT + GCC in Linux
Solution to Eclipse-4.4 crash in Debian-7.6
An error is reported when Eclipse is connected to Hadoop in Win7. The following is a simple solution: Re-compile FileUtil. java.
How to install the latest Eclipse version in Ubuntu 14.04
Python integrated development environment (Eclipse + Pydev)
This article permanently updates the link address: