java 更新导致应用程序崩溃,解决方法引发错误
我正在 Mac OS X (10.6.8) 上工作,并且最近有一个 Java 更新到 1.6.0_29。现在我的一个应用程序经常停止工作(永远不会结束旋转轮)。开发这个软件的人告诉我他们无法解决这个问题(似乎更多是在Java方面并且似乎很难重现)并提供了一个解决方法。我将旧的 JDK(备份)复制到应用程序文件夹中,然后我必须使用 shell 脚本启动应用程序。 但现在我得到这个错误:
dyld: Library not loaded: @rpath/libjli.jnilib
Referenced from: /Applications/app_xyz/jre/bin/java
Reason: image not found
./start_app_xyz.sh: line 43: 1870 Trace/BPT trap "$JAVA" $VMARGS -classpath $CLASSPATH org.eclipse.equinox.launcher.Main $APPARGS
/Applications/app_xyz
我不知道这个问题是否可以以某种方式解决。如果有人知道解决方案,请告诉我!
更新我的问题:
现在,我已将旧的 JDK 替换为另一台计算机上的 JDK,并且收到一条新的错误消息:
Exception in thread "Thread-1" java.lang.NoClassDefFoundError: for
Caused by: java.lang.ClassNotFoundException: for
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
/Applications/app_xyz
有什么想法吗?
I'm working on a Mac OS X (10.6.8) and there was a very recent Java Update to 1.6.0_29. Now one of my application frequently stops working (never ending spinning wheel). The people who developed this software told me that they cannot solve this problem (seems to be more on the Java side and seems to be hardly reproducible) and offered a workaround. I took the old JDK (backup) and copied it to the application folder and then I had to start the application with a shell script.
But now I get this error:
dyld: Library not loaded: @rpath/libjli.jnilib
Referenced from: /Applications/app_xyz/jre/bin/java
Reason: image not found
./start_app_xyz.sh: line 43: 1870 Trace/BPT trap "$JAVA" $VMARGS -classpath $CLASSPATH org.eclipse.equinox.launcher.Main $APPARGS
/Applications/app_xyz
I have no idea if this problem can be solved somehow. If anybody knows a solution, let me know!
Update on my problem:
Now, I've replaced the old JDK by one from another machine and I get an new error message:
Exception in thread "Thread-1" java.lang.NoClassDefFoundError: for
Caused by: java.lang.ClassNotFoundException: for
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
/Applications/app_xyz
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最近,我的桌面上的 Mountain Lion 中的 Java 更新失败,也收到了同样的消息。解决方案是从我的笔记本电脑复制 Java 运行时 jdk 实现。然而,我第一次就错了,弄乱了所有文件的符号链接和权限。
libjli.jnilib
文件(在我的例子中位于Libraries/
中)应该包含可执行文件。检查您是否正确复制了旧 JDK 中的文件并保留了所有系统/用户权限。
我的解决方案是将文件压缩到笔记本电脑上,然后在桌面上原位解压缩,保留链接和权限。我在 sudo 下执行此操作是为了保留 root:wheel 所有权。
祝你好运。
I recently had this same message from a failed Java Update in Mountain Lion on my desktop. The solution was to copy the Java runtime jdk implementation from my laptop. However, I got it wrong the first time and mucked up the symbolic links and the permissions for all of the files.
The
libjli.jnilib
file (inLibraries/
in my case) ought to include executable.Check that you correctly copied the files in your old JDK and preserved all system/user permissions.
My solution was to tar the files on my laptop and untar them in-situ on my desktop, preserving links and permissions. I did this under sudo so as to preserve
root:wheel
ownership.Good luck.