Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to fix broken Java ?

Im on 10.5 and as part of installing some software I switched my Java version by changing the symbolic link /System/Library/Frameworks/JavaVM.framework/Versions/Current so it pointed to 1.6 instead of 1.5. This broke some other software I need for my day-to-day work so I tried to switch back to 1.5 but it didn't work. Now Java is broken on my machine:


# java -version
Failed to open library /System/Library/Frameworks/JavaVM.framework/JavaVM
Failed to find scheduleUpdateSharing in JavaVM library: invalid handle passed to dlsym()
Bus error

Anyone know how to fix this?

MacBook Pro 17", Mac OS X (10.5.8)

Posted on Nov 13, 2010 7:42 PM

Reply
8 replies

Nov 14, 2010 7:44 PM in response to baltwo

I downloaded and (re)installed the last 10.5 Java update by removing the old 1.5 folder and copying this new tree into place and replacing the sym link. Now at least I can run java -version and get the proper response:

$ java -version
java version "1.5.0_19"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-b02-304)
Java HotSpot(TM) Client VM (build 1.5.0_19-137, mixed mode, sharing)

(previously I was getting a bus error).

I still can't run any Java applications (like Cyberduck or Eclipse) so Im still dead in the water as far as apps go.

How to fix broken Java ?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.