JavaLaunchHelper 类在两个地方实现 [英] Class JavaLaunchHelper is implemented in two places

查看:31
本文介绍了JavaLaunchHelper 类在两个地方实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天我在 macOS Sierra 上升级了我的 Intellij Idea,现在,当我在控制台中运行应用程序时出现此错误:

Today I upgraded my Intellij Idea on macOS Sierra, and now, when I run apps in console I have this error:

objc[3648]:JavaLaunchHelper 类在/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java (0x10d19c4c0) 和/Library/Java/JavaVirtualMachines/jdk112 中实现..jdk/Contents/Home/jre/lib/libinstrument.dylib (0x10ea194e0).将使用两者之一.哪个是未定义的.

objc[3648]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java (0x10d19c4c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x10ea194e0). One of the two will be used. Which one is undefined.

推荐答案

您可以在此处找到所有详细信息:

You can find all the details here:

  • IDEA-170117 objc:JavaLaunchHelper 类在两个...中实现"运行控制台中的警告
  • IDEA-170117 "objc: Class JavaLaunchHelper is implemented in both ..." warning in Run consoles

Mac 上 Java 中的旧错误被IDE在启动应用程序时使用的Java代理触发.此消息是无害的,可以安全地忽略.Oracle 开发者评论:

It's the old bug in Java on Mac that got triggered by the Java Agent being used by the IDE when starting the app. This message is harmless and is safe to ignore. Oracle developer's comment:

消息是良性的,这个问题没有负面影响因为该类的两个副本是相同的(从确切的相同的来源).这纯粹是一个表面问题.

The message is benign, there is no negative impact from this problem since both copies of that class are identical (compiled from the exact same source). It is purely a cosmetic issue.

问题已修复 Java 9Java 8 更新 152.

如果它让您烦恼或以任何方式影响您的应用程序(它不应该),IntelliJ IDEA 的解决方法是通过添加 idea.no.launcher= 禁用 idea_rt 启动器代理trueidea.properties (Help | Edit Custom Properties...).该解决方法将在下次重新启动 IDE 时生效.

If it annoys you or affects your apps in any way (it shouldn't), the workaround for IntelliJ IDEA is to disable idea_rt launcher agent by adding idea.no.launcher=true into idea.properties (Help | Edit Custom Properties...). The workaround will take effect on the next restart of the IDE.

不过,我不建议禁用 IntelliJ IDEA 启动器代理.它用于诸如优雅关闭(退出按钮)、线程转储、解决命令行过长超出操作系统限制的问题等功能.为了隐藏无害消息而失去这些功能可能不值得,但它是由你决定.

I don't recommend disabling IntelliJ IDEA launcher agent, though. It's used for such features as graceful shutdown (Exit button), thread dumps, workarounds a problem with too long command line exceeding OS limits, etc. Losing these features just for the sake of hiding the harmless message is probably not worth it, but it's up to you.

这篇关于JavaLaunchHelper 类在两个地方实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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