JetBrains Idea is the perfect IDE for Java. It requires JDK 1.6+ to run. When you want to run it on Mac without Java 1.6 installed, OS will ask you to install it. But if you have already newer Java version installed, you may run Idea under that newer JDK.
Execute in terminal:
$open /Applications/IntelliJ\ IDEA\ 14.app/Contents/Info.plist
TextEdit app will be opened.
then replace 1.6 with 1.8 (assuming, you have JDK 1.8 installed):
That’s it! Now run