How to launch the 'Idea 12' with 'Java 7' on OS X.

Hi,
the Idea 12 IDE starts with java 1.6.0_37 by default on my OS X (mountain lion) machine.
I would like to start the IDE with my default Oracle Java 7.
How is it possible?

I have already exported JAVA_HOME
"export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.7.0_10.jdk/Contents/Home"

Thanks in advance ;-)

7 comments
Comment actions Permalink

What do you expect to achieve by launching IDEA under Java 7? Java 6 works far better at the moment for Swing applications such as IntelliJ IDEA.

0
Comment actions Permalink

I am working flawlessly with java 7 and IntelliJ IDEA on my macbook pro.
The first step is to set Java 7 as the default java version, when you use mountain lion and a mac system.

0
Comment actions Permalink

If that's the only thing you did, it did not cause IntelliJ IDEA to run under Java 7.

0
Comment actions Permalink

My goal is to have only one JDK_<current version> installed on my system, as the JDK6 is not supported properly on the Mac anymore :)

0
Comment actions Permalink

Hi,

I just downloaded IntelliJ and when I clicked on it to open it, the following message popup appears
Screen Shot 2013-11-08 at 11.56.47.png
However, I have a Java 7 installed and that I use (jre and jdk). So, my questions are:

1) Why doesn't IntelliJ see that the current working version is Java 7?
2) Is there a way to tell IntelliJ to forget about Java 6 and look for Java 7?

Thanks

0
Comment actions Permalink

Thanks for the quick response. I'll install J6 then, and change it after.

0

Please sign in to leave a comment.