Currently Being Moderated

[Mac] IntelliJ IDEA doesn't start after installing Apple Java Update 1 for Mac OS X 10.6.2 (Snow Leopard)

VERSION 10

Created on: Dec 8, 2009 12:33 AM by Serge Baranov - Last Modified:  Sep 7, 2011 2:52 PM by Serge Baranov

After installing Java Update 1 you may not be able to run IntelliJ IDEA as it crashes with the following log:


Error:
Process:         idea [2159]
Path:            /Applications/IntelliJ IDEA 8.1.4.app/Contents/MacOS/idea
Identifier:      com.jetbrains.intellij
Version:         ??? (???)
Code Type:       X86 (Native)
Parent Process:  launchd [248]


Date/Time:       2009-12-07 16:24:14.134 -0500
OS Version:      Mac OS X 10.6.2 (10C540)
Report Version:  6


Interval Since Last Report:          84 sec
Crashes Since Last Report:           1
Per-App Crashes Since Last Report:   1
Anonymous UUID:                      54595750-E747-4499-BDAA-343F7818241B


Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
Crashed Thread:  4


Thread 0:  Dispatch queue: com.apple.main-thread
0   libSystem.B.dylib                   0x969608da mach_msg_trap + 10
1   libSystem.B.dylib                   0x96961047 mach_msg + 68
2   com.apple.CoreFoundation            0x949c377f __CFRunLoopRun + 2079
3   com.apple.CoreFoundation            0x949c2864 CFRunLoopRunSpecific + 452
4   com.apple.CoreFoundation            0x949c2691 CFRunLoopRunInMode + 97
5   ...ple.JavaApplicationLauncher      0x0000958e startupJava(LauncherArgsStruct*) + 342
6   ...ple.JavaApplicationLauncher      0x000088cf launchJavaApplication + 1355
7   com.jetbrains.intellij              0x00002bd5 0x1000 + 7125
8   com.jetbrains.intellij              0x0000289a 0x1000 + 6298
9   com.jetbrains.intellij              0x000027b5 0x1000 + 6069

....

 

Unfortunately, it's Apple bug and it cannot be fixed on our side. Please note that not all users are affected by this problem and it's is not IntelliJ IDEA specific as may also break other Java applications.

 

However, there is a workaround: install Java 1.5 from Mac OS X 10.5 (Leopard) version, which has been removed in the Snow Leopard and configure it to be your system default Java. IntelliJ IDEA will run fine under Java 1.5 until Apple fixes Java 1.6.

 

You can find the detailed Java 1.5 installation instructions at http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard.

 

UPDATE: It's quite possible that similar crash occurs because you already have both Java 1.5 and 1.6 versions installed on your system. Snow Leopard is not designed to have both Java versions installed at the same time and doesn't behave well in such configuration. It has been suggested in the Apple Java mailing list to remove Java 1.5 from the system to fix this problem. Choose whatever approach works for you.

 

UPDATE 2: Users report that Java Update changes the symlinks of the custom Java 1.5 back to CurrentJDK. You should revert them in order to fix the crash.

Average User Rating
(1 rating)




Justin Florentine Justin Florentine  says:

I had a similar problem after this upgrade.  I updated the info.plist file in the application bundle to use a 1.6 jdk instead of the 1.5 that was in there and it works fine now.

Serge Baranov Serge Baranov  says in response to Justin Florentine:

It seems to be a different issue. As there is no 1.5 by default on Snow Leopard, IDEA will run under 1.6 in any case, there is no need to update the Info.plist. However, if you had both installed, the update could corrupt your 1.5 installation, therefore explicitly specifying that you want to run under 1.6 seems to help.

Mike Swingler Mike Swingler  says:

The problem is that 1.5 is attempting to load it's internal resources using the full .../Versions/1.5.0/... path, and after the update, 1.5 and 1.5.0 both point at 1.6.0, so two libclient.dylib HotSpot libraries get loaded. Obviously chaos ensues after that point. Either fixing the symlink or moving 1.5 outside of the .../Versions directory will resolve this problem.

danieljimenez danieljimenez  says:

I don't believe this is an Apple bug, Java 1.5 is unsupported on Mac OS X Snow Leopard. I know of at least 5 Mac IntelliJ users who don't have any issue after installing this update. None of them ever "installed" Java 1.5 on their Mac and all are currently working A-OK post update.

Mateo Barraza Mateo Barraza  says:

After much toiling over this issue, I've got it resolved. The solution was rather simple once you find your install DVD.

Completely uninstall ALL JDKs on your machine and reinstall the default JDK from the install DVD, then apply the Java updates (in my case the latest Java 6 Update 1) and it all works smoothly again.

 

I followed these instructions with Mac OS X 10.6 Snow leopard:

 

http://www.macosxhints.com/article.php?story=2009051215025819

 

M>