Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pycharm 3.4 won't run on Yosemite

Pycharm 3.4 (fresh install) will not run on Yosemite with Apple JDK 1.6:

Crashed Thread:        32  Java: AWT-EventQueue-0

Dyld Error Message:
  Symbol not found: _CGContextSetAllowsAcceleration
  Referenced from: /Library/Java/JavaVirtualMachines/1.6.0_65-b14-462.jdk/Contents/Libraries/libawt.jnilib
  Expected in: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices

There are advices to switch to Oracle JDK 1.7 but since apple 1.6 is recommended I would rather stick with that version.

like image 295
abolotnov Avatar asked Sep 18 '14 13:09

abolotnov


4 Answers

Edit this file: /Applications/PyCharm\ CE.app/Contents/Info.plist

vi /Applications/PyCharm\ CE.app/Contents/Info.plist

CHANGE:

<key>JVMVersion</key>
      <string>1.6*</string>

TO:

<key>JVMVersion</key>
      <string>1.8*</string>

Is this it

like image 107
EL Pardal Avatar answered Oct 22 '22 08:10

EL Pardal


For PyCharm 4 in Mac OS X Yosemite:

  • Edit /Applications/[PyCharm app name]/Contents/Info.plist

  • Find and Replace -

this

<key>JVMVersion</key>
    <string>1.6*</string>

with

 <key>JVMVersion</key>
      <string>1.8*</string>
like image 28
Isanka Wijerathne Avatar answered Oct 22 '22 07:10

Isanka Wijerathne


It should be enough to download and install a fresh update for Apple Java 1.6. At the moment the latest update was Java for OS X 2014-001.

like image 2
Andrey Vlasovskikh Avatar answered Oct 22 '22 06:10

Andrey Vlasovskikh


Install Java 6 from Apple.

From the Jetbrains Blog:

Modifying Info.plist will break the application digital signature and prevent the patch updates. We do not recommend modifying Info.plist file to run under JDK 1.7 or 1.8.

Current JDK 1.7 and 1.8 versions have several critical issues. We can't default to the new JDK version until these issues are resolved

like image 2
Mystic Avatar answered Oct 22 '22 07:10

Mystic