Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,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 2.50 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (4 votes cast)
 
[10,436 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 whoever posted them. This site is not responsible for what they say.
Mine works fine
Authored by: rom.ph on Apr 29, '05 09:29:00PM

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 Apr 30, '05 11:40:18AM

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 Apr 30, '05 06:12:48PM

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 May 01, '05 03:59:28PM

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 Jan 14, '10 08:30:51AM
Yeah mine works fine also, Java is pretty friendly with all platforms in my opinion. free websites

[ Reply to This | # ]