OSX Java Problem – LSOpenFromURLSpec() Failed
I was getting netbeans crashing with this error today, so looking into I found its down to the latest update for Java causing the JVM to try and run 64bit code, on 32 bit systems, which it doesn’t like, and crashes.
So the following commands in the terminal fixed it for me. Bear in mind this has to be done as root, so consider the consequences!
Open Terminal.app, become root (sudo -s) and run the following commands.
(The ‘#’ is the shell prompt showing that we’re running as root)
# cp -p /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java /tmp/java_original_binary # lipo /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java -remove x86_64 -output /tmp/java # cat /tmp/java > /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java
This entry was posted on Wednesday, December 17th, 2008 at 8:35 am and is filed under OSX. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.