JavaLaunchHelper 类在... libinstrument.dylib 中都实现了.将使用两者之一.哪个是未定义的

2022-01-16 00:00:00 macos jvm java eclipse jvm-hotspot

我在 MacOS X 上升级到最新的 Java 7u40,并在使用 Eclipse 启动我的应用程序时开始在控制台上收到以下消息.该应用程序运行良好,但我想找出问题的原因并希望能解决它.

I upgraded to the latest Java 7u40 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.

有谁知道为什么会打印此消息以及如何修复它?

Does anyone know why this message is printed and how to fix it?

推荐答案

⚠️ 对于 JetBrains IntelliJ IDEA:转到 Help ->编辑自定义属性....如果它要求您创建文件,请创建它.要禁用错误消息,请将以下内容粘贴到您创建的文件中:

⚠️ For JetBrains IntelliJ IDEA: Go to Help -> Edit Custom Properties.... Create the file if it asks you to create it. To disable the error message paste the following to the file you created:

idea_rt
idea.no.launcher=true

这将在 IntelliJ 重启时生效.

This will take effect on the restart of the IntelliJ.

相关文章