Monday, November 4, 2013

Intellij on Mavericks without Java 1.6

Intellij on Mavericks without Java 1.6

As with many of us we love Intellij. So when we upgraded or did a clean install of Mavericks, naturally one of the first things we did was install our favorite IDE. Low and behold to our surprise, we found out that all versions even the EAP version requires Java 1.6 due to the a launcher problem. How irritating. So I decided there had to be a way to get IntelliJ to work. Started doing the normal, google this, google that and the following is what I found:
Seriously? The only way is to install Java 1.6? I don’t think so. So I decided to download the Unix version and see if that worked. Darwin is Unix so I had high hopes. To my surprise it worked just fine but there are a couple of tweaks you’ll need. You’ll need to download both the Unix and Mac versions because there are settings you will need from the Mac app bundle.

Edit idea.properties for the Unix Version

This file contains VMOptions settings and should be located in ~/Downloads/idea-IU-129.1359/bin unless you moved it. You will need to add some OSX specific properties settings. While this is not necessary to get the IDE to run, it makes it look a lot better on a Retina screen.
apple.laf.useScreenMenuBar=false
apple.awt.fullscreencapturealldisplays=false
com.apple.mrj.application.live-resize=false
apple.awt.graphics.UseQuartz=true

Copy Mac bundle’s fsnotifier

fsnotifier is a native system file watcher. The one included in the Unix version is older than the one w/ the Mac app bundle, so you will want to grab the Mac version and use it instead. Here are the steps:
  • Assuming you downloaded the Mac app bundle to your Downloads folder, right-click on the application icon and select Show Package Contents.
  • Navigate to the bin folder and copy the fsnotifier Mac app bundle version.
  • Now navigate back to the Unix version folder and paste fsnotifier.
That’s pretty much it. I did spend some time trying to generate an Oracle app bundle from the IntelliJ jar files but couldn’t quite get it to work w/ Scala. If your interested in that approach rather than using the unix version then checkout this stackoverlow article.

No comments:

Post a Comment