Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

A fix for broken Java after 10.3.9 upgrade System
Following the 10.3.9 upgrade, Java applications may no longer work (you'll see a segmentation fault). The workaround is to reinstall the latest Java update [26MB download].However, OS X won't allow you to install it without a bit more work.

You need to go to /Library/Receipts and remove the file called Java142Update2.pkg first, then run the downloaded installer and reboot. Software Update will later prompt you to install Security update 2005-002 (Feb 2005) -- accept it and reboot. You should be just fine after that.

[robg adds: I'm not sure what's causing this issue; I've upgraded three machines here, and all three have Java running just fine without any additional work. However, I have also heard from a number of people, and seen postings on various forums, that Java did break for quite a few users. If that group includes you, here's the fix.]
    •    
  • Currently 2.33 / 5
  You rated: 2 / 5 (6 votes cast)
 
[23,906 views]  

A fix for broken Java after 10.3.9 upgrade | 22 comments | Create New Account
Click here to return to the 'A fix for broken Java after 10.3.9 upgrade' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A fix for broken Java after 10.3.9 upgrade
Authored by: peewit on Apr 18, '05 11:03:55AM

Just using the Security Update fixed this for me.



[ Reply to This | # ]
A fix for broken Java after 10.3.9 upgrade
Authored by: fds on Apr 18, '05 11:07:42AM

I do have the problem, and reinstalling this old "security update" did fix it, however, it replaces JavaScriptCore among others so I'm afraid it's only fixing it by the way of reverting to older versions of certain libraries, thus losing the benefits of whatever updates Apple included...

So then I reinstalled with the 10.3.9 combo updater and as expected the Java crashed are back. Doh. I'd really love to have a better fix or some confirmation that you really are not losing anything by reinstalling a patch several months older than 10.3.9.



[ Reply to This | # ]
Java versus JavaScript
Authored by: hayne on Apr 18, '05 11:17:54AM
The fact that that old security update replaces a JavaScript library and that this makes the reported problems go away makes me suspicious that the reported problems with Java on 10.3.9 are actually problems with JavaScript and not Java itself.

Contrary to what it seems from the name, JavaScript is not at all related to Java. However, many web sites make use of JavaScript to communicate between a web page and its embedded Java applet, so problems with JavaScript can make such pages not work properly and some people might interpret this as a problem with Java.

The 10.3.9 update does make extensive changes in JavaScript - see notes on Dave Hyatt's weblog

[ Reply to This | # ]

Java versus JavaScript
Authored by: DeltaTee on Apr 18, '05 11:52:30AM

Since the command "java -version" in the terminal seg faults, I am fairly certain that the problem is related to Java and not JavaScript.



[ Reply to This | # ]
java -version
Authored by: hayne on Apr 18, '05 11:32:21PM

If you are seeing the 'java -version' command fail with a seg fault,
and you have the Apple developer tools installed,
you might be able to get some useful info by running the command under the debugger.

In a Terminal window, enter the command:

gdb java

After a bit of output from gdb, you will be at the (gdb) prompt. Enter the following command at the (gdb) prompt:

run -version

When it says that it has seg faulted, enter the following command at the (gdb) prompt:

where

Copy and paste the results of this back here so we can see.
To exit from the debugger, enter the following command at the (gdb) prompt:

quit



[ Reply to This | # ]
java -version
Authored by: yrn1 on Apr 19, '05 02:35:50AM

GNU gdb 5.3-20030128 (Apple version gdb-330.1) (Fri Jul 16 21:42:28 GMT 2004)
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "powerpc-apple-darwin".
Reading symbols for shared libraries .... done
(gdb) run -version
Starting program: /usr/bin/java -version
Reading symbols for shared libraries ................... done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done

Program received signal EXC_BAD_ACCESS, Could not access memory.
[Switching to process 597 thread 0x10f]
0x949423f8 in JVM_Timeout ()
(gdb) where
#0 0x949423f8 in JVM_Timeout ()
#1 0x9494f340 in JVM_GetMethodIxModifiers ()
#2 0x9494f340 in JVM_GetMethodIxModifiers ()
#3 0x94949b04 in JVM_DoPrivileged ()
#4 0x94956220 in JVM_MonitorNotifyAll ()
#5 0x94903d14 in JVM_GetClassAccessFlags ()
#6 0x94906544 in JVM_MonitorWait ()
#7 0x949062bc in JVM_MonitorWait ()
#8 0x949c245c in JVM_GetClassDeclaredFields ()
#9 0x949f1d70 in JVM_GetInterfaceVersion ()
#10 0x949ecaa8 in JVM_GetInterfaceVersion ()
#11 0x949ec5dc in JVM_GetInterfaceVersion ()
#12 0x949cd47c in JVM_IsPrimitiveClass ()
#13 0x949bd3b0 in JVM_GetClassDeclaredMethods ()
#14 0x949d7d6c in JNI_CreateJavaVM_Impl ()
#15 0x00005634 in ?? ()
#16 0x000041bc in ?? ()
#17 0x00006538 in ?? ()
#18 0x90024910 in _pthread_body ()
(gdb)



[ Reply to This | # ]
A fix for broken Java after 10.3.9 upgrade
Authored by: bjackson on Apr 18, '05 12:30:33PM

From what I've seen on other forums, you don't have to install the old release (and shouldn't, as comments above show, as this will install an older framework).

Simply run the update_prebinding command from the terminal has fixed this issue for many people. Normal warnings about knowing what you're doing in the terminal, what sudo does, etc. READ the man page if you're not comfortable with knowing exactly what this command does.

$sudo update_prebindings -force -root /


---
Brian Jackson
b.k.jackson@mac.com
http://www.brian-jackson.net



[ Reply to This | # ]
A fix for broken Java after 10.3.9 upgrade
Authored by: blalor on Apr 18, '05 01:00:02PM
that's update_prebinding, not update_prebindings

[ Reply to This | # ]
A fix for broken Java after 10.3.9 upgrade
Authored by: silverdr on Apr 18, '05 01:01:36PM

Welcome to Darwin!
ShangHai:~$ java -version
Segmentation fault
ShangHai:~$ sudo update_prebinding -force -root /

[... after few minutes...]

2005-04-18 18:52:55.265 update_prebinding[795] Update_prebinding done.
2005-04-18 18:52:55.267 update_prebinding[795] 1940 files successfully prebound, 208 files unsuccessfully prebound.


ShangHai:~$ java -version
HotSpot not at correct virtual address. Sharing disabled.
java version "1.4.2_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-141.4)
Java HotSpot(TM) Client VM (build 1.4.2-38, mixed mode)
ShangHai:~$


So it seems that this method at least partially work without reinstalling anything.



[ Reply to This | # ]
A fix for broken Java after 10.3.9 upgrade
Authored by: fds on Apr 18, '05 01:14:57PM

The update prebinding tip worked for me only until I rebooted. And after it redid all the prebindings (and when Java works), all apps started like molasses. Even TextEdit took a good 3-4 bounces before starting as opposed to none.

After a simple reboot, apps start fast again, and the Java crashes are back yet again...



[ Reply to This | # ]
A fix for broken Java after 10.3.9 upgrade
Authored by: themacnut on Apr 19, '05 02:56:53AM

You are supposed to reboot after running the update_prebinding command. Prebinding is basically what installers do after a major install or upgrade, and they always ask you to restart when they're done.



---
The MacNut
Owner, ClarisWorks/AppleWorks Email List
http://awlist.macnuthome.com



[ Reply to This | # ]
A fix for broken Java after 10.3.9 upgrade
Authored by: emilyweise on Apr 18, '05 02:22:20PM
Yeah, that definitely didn't work.
lappy:~ emily$ java -version
Segmentation fault
lappy:~ emily$ 
Any thoughts on what THAT was?

[ Reply to This | # ]
A fix for broken Java after 10.3.9 upgrade
Authored by: bjackson on Apr 18, '05 02:42:07PM
Sorry for the typo, the command is indeed "update_prebinding".

As stated in my original reply, it appears to work for some, and not for others. Here is some more discussion:

Mac Rumors

Apple Discussion Board

---
Brian Jackson
b.k.jackson@mac.com
http://www.brian-jackson.net

[ Reply to This | # ]

A fix for broken Java after 10.3.9 upgrade
Authored by: turnerm5 on Apr 18, '05 02:18:49PM

I deleted that receipt, but the installer would still not let me reinstall the update. I updated the prebinding, which did not help either... Any ideas?



[ Reply to This | # ]
A fix for broken Java after 10.3.9 upgrade
Authored by: billbarstad on Apr 19, '05 12:12:17PM

Double check that you deleted the right Java update receipt, Java142Update2. The receipt is the only thing stopping the installer.



[ Reply to This | # ]
A fix for broken Java after 10.3.9 upgrade
Authored by: artntek on Apr 18, '05 07:16:41PM

> I deleted that receipt, but the installer would still not let me reinstall the
> update. I updated the prebinding, which did not help either... Any ideas?

i had the same problem - i got around it doing 2 things - not sure if both are required or not

1 - remove the version.plist file from
/System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/

and

2- using a hint on this page

http://forum.macosx.nl/viewtopic.php?t=15787

basically, you view the package contents of the installer and remove the script that checks the volume, as described below

-------------
Quote:
There is a way to remove the installation checks for the installer but, since it is not supported, I am afraid that you will have to use it at your own risks. Would you want to try it, here are the steps :

1. Copy the installer to your desktop
2. Control-click on the installer package and select "Show package contents"
3. Open the "Contents" and "Resources" folders
4. Locate the "VolumeCheck" file and click on it once
5. Enter Apple-I. In the window that appears, select "Permissions" and make sure that both the owner and the group are set to your username.
6. Close the get info window and drag the script to the trash.
7. Launch the installer

This should force the installer to work. However, note that I have been able to run it without any issues on a configuration similar to yours, by downloading it from the Apple site -- I just tried again.

Again, this is not a supported procedure...

Let me know if this helps !
F.J. (Fran├žois Joseph de Kermadec)




[ Reply to This | # ]
A fix for broken Java after 10.3.9 upgrade
Authored by: DanFrakes on Apr 19, '05 03:45:09AM
A fix for broken Java after 10.3.9 upgrade
Authored by: rjvaughn on Apr 19, '05 12:07:22PM

Apple published a KB fix. For those who haven't seen it, it can be found here:

http://docs.info.apple.com/article.html?artnum=301380

RickV



[ Reply to This | # ]
A fix for broken Java after 10.3.9 upgrade
Authored by: billbarstad on Apr 19, '05 12:16:00PM

I'm kind of in-between. The first Java program I ran after installing 10.3.9, ImageJ, crashed initially then ran OK after relaunch. I rebooted and ran ImageJ which then crashed twice and finally ran OK the third time. Funky!



[ Reply to This | # ]
possible reason for the problem
Authored by: hayne on Apr 19, '05 01:20:03PM
  1. It seems that what might have caused the problems is having a Java application running while you did the 10.3.9 update.
    While in theory you should be able to continue to use your Mac while an update is being applied, it is certainly safer to quit other programs when doing an update.
    I note that one common Java application that many people have running is Limewire. Acquisition also uses Java behind the scenes.

  2. As others have noted, Apple has put up a document explaining how to diagnose and fix the problem: http://docs.info.apple.com/article.html?artnum=301380


[ Reply to This | # ]
java problem and prevention methods
Authored by: jfaughnan on Apr 20, '05 09:48:32AM

That's what I'd suspected when I heard of it. For what it's worth I routinely run as a non-admin user. For system updates I do the following:

1. log in on my "virgin" admin account (very plain, no odd configuration, no startup items, etc). Run PCC (or similar) to flush caches.
2. shut down, restart and login again to admin
3. run the update
4. shut down and restart

I eventually do repair privileges, though I've never seen it make any difference.

---
--
John Faughnan
jfaughnan@spamcop.net
www.faughnan.com



[ Reply to This | # ]
A fix for broken Java after 10.3.9 upgrade
Authored by: snyvlboi on Apr 19, '05 05:51:58PM

Before grabbing at straws here (e.g., removing software, reinstalling it, etc.), consider following Apple's recommendation for this problem, which is outlined in a News.com article featured yesterday:

Java glitch hits OS update

http://news.com.com/Java+glitch+hits+OS+X+update/2100-1016_3-5675631.html



[ Reply to This | # ]