I have recently installed Mac OS 10.9.5 update. After update, I found Eclipse.app failed to start, it pops up a window with message: "
It is not supported on this type of Mac."
The solution is:
- Find your java home:
/usr/libexec/java_home -V
, you can see the java home like below:Matching Java Virtual Machines (1):
1.8.0_20, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home
/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home
- Edit file: /Applications/eclipse/Eclipse.app/Contents/Info.plist, and insert the follow line:
<string>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/bin/java</string>
to the proper location.
- Now you can try to click the Eclipse.app icon, if it pops up another error message: "Eclipse is damaged and can’t be opened. You should move it to Trash.", you will need to run the following command to fix:
xattr -d com.apple.quarantine /Applications/eclipse/Eclipse.app/
Note: you can run the following command to check directory attributes: xattr /Applications/eclipse/Eclipse.app/
see also
No comments:
Post a Comment