ams*_*ams 271 java eclipse macos jvm jvm-hotspot
I upgraded to the latest Java 7 u40 on MacOS X and started getting the following message on the console when launching my application using Eclipse. The app works fine but I would like to find out the cause of the problem and hopefully a fix for it.
objc[10012]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
Run Code Online (Sandbox Code Playgroud)
Does anyone know why this message is printed and how to fix it?
rus*_*ust 171
⚠️ 对JetBrains IntelliJ IDEA:转到 Help -> Edit Custom Properties...
.如果要求您创建文件,请创建该文件.要禁用错误消息,请将以下内容粘贴到您创建的文件中:
idea_rt
idea.no.launcher=true
Run Code Online (Sandbox Code Playgroud)
这将在下次重启IntelliJ时生效.
小智 20
从这里安装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
Run Code Online (Sandbox Code Playgroud)运行你的应用程序和乐趣:)
Pri*_*ain 11
复制粘贴@ Lichtamberg对gotoalberto的回答的评论
适用于Java 1.8:
# in ~/.zshrc and ~/.bashrc
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home
export PATH=$JAVA_HOME/bin:$PATH
Run Code Online (Sandbox Code Playgroud)
这解决了我在java 8上的问题.
正如其他答案所详细说明的那样,这是 JDK(最高可达 u45)中的一个错误,将在 JDK7u60 中修复 - 虽然尚未发布,但您可以从以下位置下载 b01:https: //jdk7.java.net/download。 html
它是测试版,但为我解决了这个问题。
归档时间: |
|
查看次数: |
119760 次 |
最近记录: |