10.4: A fix for broken Java after XCode installation

Apr 29, '05 09:01:00PM

Contributed by: Anonymous

Tiger only hintAfter I installed Xcode (I selected to install everything), Java produced same segmentation fault problem as in 10.3.9. I found a solution by applying steps for Java 1.4.2 in Apple's website. Here is a copy of the steps:

  1. Open Terminal
  2. Type cd /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/; sudo java -Xdump and press Return.
  3. Type your password (you must be logged in as an administrator user) and press Return.
  4. Type cd /System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Libraries/; sudo java -Xdump:/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Libraries/classes.jsa -version and press Return.
After this, Java is working correctly again on my machine. Hope this tip is useful to you.

Comments (5)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20050426014905678