Fixing OS X Yosemite IntelliJ issues
I fixed some errors after upgrading to OS X 10.10 when trying to run and debug an IntelliJ IDEA plugin by downloading Java 1.7 and switching my plugin SDK to use it. You will have to create a new Java 1.7 SDK before you can use it for your IntelliJ Plugin SDK.
Note before deploying the plugin, revert back to Apple's 1.6 Java version, since that's the recommended version to use for deploying Intellij IDEA plugins. Running and debugging the plugin with 1.7 should be fine however.
I downloaded Java 1.7 from Oracle's website here:
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
The errors I saw (and fixed) are the following:
com.intellij.rt.execution.application.AppMain quit unexpectedly while using the libawt.jnilib plug-in
dyld: lazy symbol binding failed: Symbol not found: CGContextSetAllowsAcceleration
Referenced from: /Library/Java/JavaVirtualMachines/1.6.031-b04-411.jdk/Contents/Libraries/libawt.jnilib
Expected in: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
dyld: Symbol not found: CGContextSetAllowsAcceleration
Referenced from: /Library/Java/JavaVirtualMachines/1.6.031-b04-411.jdk/Contents/Libraries/libawt.jnilib
Expected in: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
Written by swarktrans
Related protips
3 Responses
how did you revert back to 1.6. I am facing the same errors here after upgrading.
Actually Jetbrains provides it with a custom jdk to avoid this issue as you can see in this cask file https://github.com/caskroom/homebrew-cask/blob/master/Casks/intellij-idea.rb
Yes, I made this post before they embedded open jdk, but I doubt that you can ignore earlier versions of intellij just yet. You probably want to support other older versions at least for a couple of more years. The last version of intellij, 14, had an optional open jdk, and 15 just makes it default. You'd want to support 14 until at least 17 came out I'd think.