running any java program gives "dyld: Library not loaded: @rpath/libjli.jnilib"

Hi


Running Lion 10.7.2, but getting errors when I try to run *any* java program. From the command line, "java -version" gives me:


dyld: Library not loaded: @rpath/libjli.jnilib

Referenced from: /Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Home/bin/java

Reason: image not found

Trace/BPT trap: 5


I have tried repairing permissions, etc, and software update says all the latest version, and tried the java update for Lion, which does not install because it says I have a later version.


I can't add java manually since java.com says use software update, and I can't find how to reinstall?


Any ideas?


TIA


Shaun

Mac Pro, Mac OS X (10.7)

Posted on Dec 16, 2011 7:30 AM

Reply
5 replies

Dec 16, 2011 5:16 PM in response to Shaun Conn

That implies the libjli.jnilib file is missing. On my machine, w/o the jdk intalled, these are the only installed components:


libmlib_jai.jnilib

liblauncher.jnilib

libJ3DUtils.jnilib

libJ3DAudio.jnilib

libJ3D.jnilib

libAppleScriptEngine.jnilib

libjdns_sd.jnilib


If you're playing around with Java SDKs, then try reinstalling or the developer forums.

Dec 17, 2011 3:56 PM in response to baltwo

Sorry, you misunderstand - I wasn't saying I hadn't installed something by mistake, I was just saying I wasnt playing. :-)


Unfortunately, knowing I may have inadvertently installed something like that doesn't help me fix my problem... I guess I really need to find someone who knows how to fix it, or has had a similar problem, rather than someone who hasn't got an issue.


Shaun

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.

running any java program gives "dyld: Library not loaded: @rpath/libjli.jnilib"

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