After installing Intellij IDEA 14 in OSX you can get a message that JRE 1.6 is required to run it. If you have already installed JDK1.7 or JDK1.8 do following changes:
$ cd /Applications/IntelliJ\ IDEA\ 14\ CE.app/Contents/
$ vim Info.plist
Change
<key>JVMVersion</key>
<string>1.6*</string>
to
<key>JVMVersion</key>
<string>1.8*</string>