JavaLaunchHelper类都在两者中实现。其中一个将被使用。哪一个是未定义的 [英] Class JavaLaunchHelper is implemented in both. One of the two will be used. Which one is undefined

查看:563
本文介绍了JavaLaunchHelper类都在两者中实现。其中一个将被使用。哪一个是未定义的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



运行于以下内容:

>

  objc [5398]:JavaLaunchHelper类在/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/中实现bin / java和/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre/lib/libinstrument.dylib。其中一个将被使用。哪一个是未定义的

当我尝试作为本地主机上的web应用程序运行时



可能与以下问题有关:



https://code.google.com/p/googleappengine/issues/detail?id=10046



任何帮助将是有用的。

解决方案

从我在网上找到的这是JDK 1.7.0_45中引入的一个错误。它似乎也存在于JDK 1.7.0_60中。 Oracle网站上的错误报告指出,虽然有一个修复,但在JDK被发布。我不知道为什么修复被删除,但它确认了我们已经怀疑的 - JDK仍然被破坏。



错误报告声称错误是良性,不应该导致任何运行时问题,尽管其中一个意见不同意。在我自己的经验中,尽管看到了这个消息,我已经能够使用JDK 1.7.0_60来解决问题。



如果这个问题引起严重问题,我建议的几件事:




  • 还原回 JDK 1.7.0_25 ,直到将修补程序添加到JDK。


  • 请关注错误报告,以便您了解在此问题上正在进行的任何工作。也许甚至添加自己的评论,所以Oracle知道问题的严重性。


  • 尝试 JDK早期版本。其中一个可能会解决您的问题。




在Mac OS X上安装JDK的说明可在适用于Mac OS X的JDK 7安装。它还包含删除JDK的说明。


Have a simple Google App Engine Web Application Project on Eclipse Kepler on Mac OS X with java version "1.7.0_45"

Running into the following :

objc[5398]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.

when I try to run as web application on localhost

Possibly related to the following issue :

https://code.google.com/p/googleappengine/issues/detail?id=10046

Any help would be useful.

解决方案

From what I've found online, this is a bug introduced in JDK 1.7.0_45. It appears to also be present in JDK 1.7.0_60. A bug report on Oracle's website states that, while there was a fix, it was removed before the JDK was released. I do not know why the fix was removed, but it confirms what we've already suspected -- the JDK is still broken.

The bug report claims that the error is benign and should not cause any run-time problems, though one of the comments disagrees with that. In my own experience, I have been able to work without any problems using JDK 1.7.0_60 despite seeing the message.

If this issue is causing serious problems, here are a few things I would suggest:

  • Revert back to JDK 1.7.0_25 until a fix is added to the JDK.

  • Keep an eye on the bug report so that you are aware of any work being done on this issue. Maybe even add your own comment so Oracle is aware of the severity of the issue.

  • Try the JDK early releases as they come out. One of them might fix your problem.

Instructions for installing the JDK on Mac OS X are available at JDK 7 Installation for Mac OS X. It also contains instructions for removing the JDK.

这篇关于JavaLaunchHelper类都在两者中实现。其中一个将被使用。哪一个是未定义的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆