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)