Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!

10.4: A fix for broken Java after XCode installation System 10.4
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.
    •    
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[7,970 views]  

10.4: A fix for broken Java after XCode installation | 5 comments | Create New Account
Click here to return to the '10.4: A fix for broken Java after XCode installation' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Mine works fine
Authored by: rom.ph on Fri, Apr 29 2005 at 9:29PM PDT
I am not sure if it is the Java 5.0 PR1 release that fixed it since i have installed it but 1.4 is still the default Java version.

Anyway, works fine on my Tiger.

[ Reply to This | # ]
Mine works fine
Authored by: satcomer on Sat, Apr 30 2005 at 11:40AM PDT
If you installed the new Java, go to Utilities->Java->JSE 5.0->Java Preferences and select the Java (choose the new version) version you want to use. It's that simple.

[ Reply to This | # ]
There IS a problem...
Authored by: lar3ry on Sat, Apr 30 2005 at 6:12PM PDT
The error message is that a configuration file (jvm.cfg) is corrupt. The message is not quite correct. The problem is one of permissions.

The fix:

sudo chmod -R a+rX /System/Library/Frameworks/JavaVM.framework

(All on one line. Note the permissions consists of a lower case 'a', a plus sign, a lower case 'r', and an upper case 'X'.)

If you want to set up Java 1.5 to be your default java when you enter the "java" command, you need to follow the instructions on Apple's page where the download is made available. There's a script that does all the magic that needs to be done. I don't have the web page handy right now, or I'd add either the script name or a pointer to the URL... it should be easy enough to figure out, though.

[ Reply to This | # ]
10.4: A fix for broken Java after XCode installation
Authored by: LC on Sun, May 1 2005 at 3:59PM PDT
I don't know whether folks usually have the cwd (".") in their command path (I hope it comes last) ... but after using "cd" such as in this hint, I would be more comfortable executing "./java ..." as a general practice to avoid the other possibilities, during any operation where there are multiple versions on the same system.

[ Reply to This | # ]
10.4: A fix for broken Java after XCode installation
Authored by: chadisa on Thu, Jan 14 2010 at 8:30AM PST
Yeah mine works fine also, Java is pretty friendly with all platforms in my opinion. free websites

[ Reply to This | # ]