java preferences fails to launch

I can no longer run JavaPreferences, it fails to launch with the message


"A static initializer of the main class threw an exception: java.lang.NullPointerException..


a while ago

StergUK gave this anwer, :


OK, after panicking a bit I have found the solution to this.

Go to /System/Library/Frameworks/JavaVM.framework/Versions/ and delete 1.6.0 folder and 1.6.

Then download this file:

http://www.cs.washington.edu/homes/isdal/snowleopardworkaround/java.1.5.0-leopard.tar.gz


Decompress the file and you should have a folder named 1.5.0.


Copy that folder to the /System/Library/Frameworks/JavaVM.framework/Versions/ replacing the old one. A window will pop up for version authentication. Click "Authenticate" and replace the old folder with the one from the java.1.5.0-leopard.tar.gz.


Run Java Preferences from Utilities and you are good to go.




I have tried, but I still cannot run Java preference and get the same answer : "A static initializer of the main class threw an exception: java.lang.NullPointerException..


can anyone help?

iMac, Mac OS X (10.5.8)

Posted on Oct 28, 2011 3:21 PM

Reply
2 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

java preferences fails to launch

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