This is a tip in reference to Yosemite ´s users (10.10). Yosemite erase 1.6 apple jdk and install 1.7, but JAVA´s IDE for example Intellij or Eclipse needs 1.6, if you haven´t reinstalled this version, your ide will crash at the beginning... after this process you can configure your ide with 1.7 version.
Here the link : Apple JDK 1.6
It's easy to change Jetbrains' products to use jdk1.7:
Info.plist
Find:
<key>JVMVersion</key>
<string>1.6*</string>
and change to:
<key>JVMVersion</key>
<string>1.7*</string>
Save and quit,