Mac OS X Leopard, Java 1.6, and Intellij 7.0.3?

Just upgraded to Mac OS X Leopard with Java 1.6 installed but not the default. What do I need to do to get Intellij 7.0.3 to use Java 1.6 for itself? I was able to get a project to use Java 1.6 but I believe that Intellij will get a speed boost from Java1.6.

0
14 comments

You lucky one! My Mac mini bought 12 months ago just has a Core Duo
processor and hence cannot use Java 1.6. :(

0

Why do you believe that?

0

Believe what - that Mac Java 1.6 does not run on a Core Duo machine?

Tom

0
Avatar
Ricardo Navarro Vásquez

In http://developer.apple.com/java/download/

"Java for Mac OS X 10.5, Update 1 adds Java SE 6 version 1.6.0_05 to 64-bit Intel Macs."

0

The Core Duo Mac mini unfortunately is a 32-bit Intel Mac.

0
Avatar
Michael Parmeley

I haven't tried to get IntelliJ to run under 1.6 on Leopard yet (haven't gotten around to it), but I was going to try setting the IDEA_JDK environment variable which works on Windows to get IntelliJ to use a different JDK. Point the evnironment variable at the top-level java directory for the version you want. The GUI on mac os doesn't honor environment variables in the various shell config scripts (i.e. .profile, .bash_profile, etc.) Instead you have to edit a file in your home directory, then log out and log in. Here is a link that has details about that file (this is python related but the information applies to all, just using this one because it is the first that came up in a google search, Apple has this info in their doc site as well):

http://www.astro.washington.edu/owen/AquaEnvVar.html

You can create/edit the file with vi from a terminal or use Property Editor (believe that is what it is called). Although when I tried to use Property Editor I recall having issues having it save with the name I needed (but it has been a while so I might just be recalling incorrectly). Just stick with vi.

BTW, let us know if this works for you, so I know whether it works or not:-)

If you need help finding java home here you go: http://developer.apple.com/java/faq/#javahome

0

Yes. Why wouldn't they support it there? What excuse do they give? It seems pretty indefensible.

RRS

0

What excuse to they give?


None.

0

That's odd. I fixed that typo immediately after posting the original message.

Anyway, this kind of peeves me, 'cause I have two Core Duo Macs, a MacBook Pro and an iMac.

RRS

0

Its pretty simple. Using the Property List Editor, which comes with the XCode development tools, open up IntelliJ IDEA 7.0.3/Contents/Info.plist and edit the Java/JVMVersion property to be 1.6+ and save it. This should force IDEA to use the 1.6 JRE.

-Tom

0

OK, I modified the Info.plist as suggested and that did the trick. Performance is not as good as I'd hoped. There seem to be some memory issues that I need to monitor.

0

I was able to get IDEA run under 1.6 by making it the default JRE. I
dragged "Java SE 6 (64-bit)" to the top of the list at Applications >
Utilities > Java > Java Preferences.

--
Esko Luontola
www.orfjackal.net

0

Hello Erik,

OK, I modified the Info.plist as suggested and that did the trick.
Performance is not as good as I'd hoped. There seem to be some memory
issues that I need to monitor.


Because the Apple Java 6 implementation is 64-bit, you'll see a very noticeable
increase in memory consumption (around 1.5x I would say). There is no workaround
for that.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Avatar
Daniel Doubleday

I'm having big time trouble getting productive again after a forced update to leopard.

Idea keeps on crashing on me no matter if I use 1.6 or 1.5 Java. Everything was just fine on the same machine running tiger.

My next desperate attempt would be soylatte (though I guess the ui will be really ugly - but I can't help or switch to eclipse - shiver).
Anybody out there who tried that?

Since soylate uses a regular JDK dir layout should I try writing my own lil' script to launch IDEA? Somebody did that already?
Or should I rather try to package soylatte in OS X framework layout.

This is really frustrating. I don't blame intellij btw.

Cheers, Daniel

Edited by: Daniel Doubleday on Jul 3, 2008 6:07 PM

0

Please sign in to leave a comment.