Terminal Tips: Fix your 10.3.9 Java Problems via the Terminal
I spotted this one over at MacFixIt. If you're experiencing Java problems in Safari and elsewhere ever since upgrading to 10.3.9, Camillo Lugaresi wrote in to MacFixIt with a simple Terminal-based solution. First, launch the Terminal (located in /Applications/Utilities/).
Type cd /System/Library/Frameworks/JavaVM.framework/ Versions/1.4.2/Libraries/ and hit return.
Next, type sudo ../Commands/java -Xdump
and hit return. You will be prompted for a password. Enter your Administrator password. A series of messages will be displayed and then you are done.
How does it work? According to Lugaresi, "The commands I suggested above reproduce the exact steps taken by JavaStartup to update the JSA [Java Shared Archive], with the advantage of avoiding a reboot and not requiring any downloads." Neat.