After installing Oracle JDK 7.0 and 8.0 for Mac OS X, the Eclipse startup reports an error.

Source: Internet
Author: User

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:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.