Posts Tagged ‘JVM’

Running IntelliJ on Mac OS X 10.6.2

Monday, November 23rd, 2009

A few weeks ago I installed Snow Leopard on my machine. As you might have experienced yourself, the #@%^ from Apple removed the 1.5 files and just added a symbolic link to Java 1.6. Very clever, couldn’t have come up with it myself..

So I downloaded Java 1.5 from the 10.5.8 release from apple. Changed the order of Java VM’s in the Java Preferences and I was back on track.

Well..

IntelliJ started to act strange. Commands in the menu could only be executed once, shortcuts were rendered incorrectly after viewing them once, and so on.

I talked to the Jetbrains guys at Devoxx and they suggested me to try it on Java 1.6 and see if the problem occurs there too. Well, it doesn’t.

So first I tried to change my JVM order back again in the Java Preferences, but doesn’t seem to do anything.

So I modified my Info.plist in /Applications/IntelliJ IDEA 8.1.4.app/Contents and while I was there I updated my VM settings as suggested here. This is the result:

<div></div>
<div></div>
<div>CFBundleDevelopmentRegion</div>
<div>English</div>
<div>CFBundleDocumentTypes</div>
<div></div>
<div></div>
<div>CFBundleTypeExtensions</div>
<div></div>
<div>ipr</div>
<div>CFBundleTypeIconFile</div>
<div>idea.icns</div>
<div>CFBundleTypeName</div>
<div>IntelliJ IDEA Project File</div>
<div>CFBundleTypeRole</div>
<div>Editor</div>
<div>CFBundleExecutable</div>
<div>idea</div>
<div>CFBundleIconFile</div>
<div>idea.icns</div>
<div>CFBundleInfoDictionaryVersion</div>
<div>6.0</div>
<div>CFBundleName</div>
<div>IntelliJ IDEA</div>
<div>CFBundlePackageType</div>
<div>APPL</div>
<div>CFBundleIdentifier</div>
<div>com.jetbrains.intellij</div>
<div>CFBundleSignature</div>
<div>????</div>
<div>CFBundleGetInfoString</div>
<div>IntelliJ IDEA 8.1.4, build 9952. Copyright JetBrains s.r.o., (c) 2000-2009</div>
<div>CFBundleShortVersionString</div>
<div>8.1.4</div>
<div>CFBundleVersion</div>
<div>9952</div>
<div>Java</div>
<div></div>
<div>ClassPath</div>
<div>$APP_PACKAGE/lib/bootstrap.jar: $APP_PACKAGE/lib/extensions.jar: $APP_PACKAGE/lib/util.jar: $APP_PACKAGE/lib/jdom.jar: $APP_PACKAGE/lib/log4j.jar:/System/Library/Java</div>
<div>JVMVersion</div>
<div><strong>1.6*</div>
<div>JVMArchs</div>
<div></div>
<div>i386</div>
<div>x86_64</div>
<div>ppc</div>
<div>LSArchitecturePriority</div>
<div></div>
<div>i386</div>
<div>x86_64</div>
<div>ppc</div>
<div>MainClass</div>
<div>com.intellij.idea.Main</div>
<div>Properties</div>
<div></div>
<div>CVS_PASSFILE</div>
<div>~/.cvspass</div>
<div>com.apple.mrj.application.live-resize</div>
<div>false</div>
<div>idea.config.path</div>
<div>~/Library/Preferences/IntelliJIDEA80</div>
<div>idea.system.path</div>
<div>~/Library/Caches/IntelliJIDEA8x/</div>
<div>idea.plugins.path</div>
<div>~/Library/Application Support/IntelliJIDEA80/</div>
<div>java.endorsed.dirs</div>
<div></div>
<div>idea.smooth.progress</div>
<div>false</div>
<div>apple.laf.useScreenMenuBar</div>
<div>true</div>
<div>apple.awt.graphics.UseQuartz</div>
<div>true</div>
<div>VMOptions</div>
<div>-Xms256m -Xmx512m -XX:MaxPermSize=256m -Xbootclasspath/a:../lib/boot.jar -ea -server -XX:-UseParallelGC</div>
<div>WorkingDirectory</div>
<div>$APP_PACKAGE/bin</div>