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

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

问题描述

在 Java 版本1.7.0_45"的 Mac OS X 上的 Eclipse Kepler 上有一个简单的 Google App Engine Web 应用程序项目

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

遇到以下情况:

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.

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

when I try to run as web application on localhost

可能与以下问题有关:

https://code.google.com/p/googleappengine/问题/详细信息?id=10046

任何帮助都会有用.

推荐答案

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

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.

错误报告声称该错误是良性的,不应导致任何运行时问题,尽管其中一条评论不同意这一点.根据我自己的经验,尽管看到了消息,但我在使用 JDK 1.7.0_60 时仍然可以毫无问题地工作.

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.

密切关注错误报告,以便您了解任何正在就此问题开展工作.甚至可以添加您自己的评论,以便 Oracle 了解问题的严重性.

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.

试用 JDK 早期版本,因为它们已经发布.其中之一可能会解决您的问题.

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

有关在 Mac OS X 上安装 JDK 的说明可在 JDK7 Mac OS X 安装.它还包含删除 JDK 的说明.

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天全站免登陆