java 更新导致应用程序崩溃,解决方法引发错误

发布于 2024-12-18 12:07:50 字数 1168 浏览 3 评论 0原文

我正在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小巷里的女流氓 2024-12-25 12:07:50

最近,我的桌面上的 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 (in Libraries/ 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文