加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Java > 正文

类JavaLaunchHelper在两个地方实现

发布时间:2020-12-15 02:18:50 所属栏目:Java 来源:网络整理
导读:今天我在macOS Sierra上升级了我的Intellij Idea,现在,当我在控制台中运行应用程序时出现此错误: objc[3648]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java (0x10d19c4c0) a
今天我在macOS Sierra上升级了我的Intellij Idea,现在,当我在控制台中运行应用程序时出现此错误:

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.

解决方法

你可以在这里找到所有细节:

> IDEA-170117“objc:类JavaLaunchHelper在两个…中实现”运行控制台中的警告

这是启动应用程序时IDE使用的0700在Mac上的old bug in Java.此消息是无害的,可以安全地忽略. Oracle开发人员的评论:

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.

problem is fixed在Java 9和Java 8 update 152.

如果它以任何方式惹恼你或影响你的应用程序(它不应该),IntelliJ IDEA的解决方法是通过在idea.properties中添加idea.no.launcher = true来禁用idea_rt启动程序代理(帮助|编辑自定义属性.. ).解决方法将在下次重新启动IDE时生效.

不过,我不建议禁用IntelliJ IDEA启动程序代理.它用于正常关机(退出按钮),线程转储,解决方案太长命令行超出操作系统限制等问题等等.仅仅为了隐藏无害消息而丢失这些功能可能不值得,但它是由你决定.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读