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

查看:1522
本文介绍了类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/jdk1.8.0_121.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上的旧bug 由启动应用程序时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 9 Java 8更新152

如果它以任何方式惹恼您或影响您的应用程序(它不应该),IntelliJ IDEA的解决方法是禁用 idea_rt 启动器代理,将 idea.no.launcher = true 添加到 idea.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天全站免登陆