Archive for the ‘OSX’ Category
OSX Java Problem – LSOpenFromURLSpec() Failed
Wednesday, December 17th, 2008
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
Tags: Java, Mac
Posted in OSX | 7 Comments »