JavaLaunchHelper 类在两者中都实现了。将使用两者之一。哪个是未定义的
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20794751/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Class JavaLaunchHelper is implemented in both. One of the two will be used. Which one is undefined
提问by Arunabh Das
Have a simple Google App Engine Web Application Project on Eclipse Kepler on Mac OS X with java version "1.7.0_45"
在 Java 版本“1.7.0_45”的 Mac OS X 上的 Eclipse Kepler 上有一个简单的 Google App Engine Web 应用程序项目
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
当我尝试在本地主机上作为 Web 应用程序运行时
Possibly related to the following issue :
可能与以下问题有关:
https://code.google.com/p/googleappengine/issues/detail?id=10046
https://code.google.com/p/googleappengine/issues/detail?id=10046
Any help would be useful.
任何帮助都会有用。
回答by Michael Venable
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 reporton 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_45 中引入的一个错误。它似乎也存在于 JDK 1.7.0_60 中。一个错误报告Oracle的网站上说,虽然有修复,在JDK发布之前就被删除。我不知道为什么修复被删除,但它证实了我们已经怀疑的 - JDK 仍然损坏。
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.
错误报告声称该错误是良性的,不应导致任何运行时问题,尽管其中一条评论不同意这一点。根据我自己的经验,尽管看到了该消息,但我在使用 JDK 1.7.0_60 时仍然可以毫无问题地工作。
If this issue is causing serious problems, here are a few things I would suggest:
如果这个问题导致了严重的问题,我会建议以下几点:
Revert back to JDK 1.7.0_25until a fix is added to the JDK.
Keep an eye on the bug reportso 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 releasesas they come out. One of them might fix your problem.
恢复到JDK 1.7.0_25,直到将修复程序添加到 JDK。
请密切关注错误报告,以便您了解针对此问题所做的任何工作。甚至可以添加您自己的评论,以便 Oracle 了解问题的严重性。
在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.
在 Mac OS X 上安装 JDK 的说明可在 Mac OS X 的JDK 7 安装中找到。它还包含删除 JDK 的说明。
回答by gotoalberto
Install Java 7u21 from here: http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html#jdk-7u21-oth-JPR
set these variables:
export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home" export PATH=$JAVA_HOME/bin:$PATH
Run your app and fun :)
从这里安装 Java 7u21:http: //www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html#jdk-7u21-oth-JPR
设置这些变量:
export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home" export PATH=$JAVA_HOME/bin:$PATH
运行您的应用程序并享受乐趣 :)
(Minor update: put variable value in quote)
(次要更新:将变量值放在引号中)