InteliJ Idea 2017.1 for Mac 版 objc[4163]: Class JavaLaunchHelper is implemented in both XXX提示

Mac版本IntelliJ Idea 2017.1在运行程序时,Console出现红色警告『objc[4163]: Class JavaLaunchHelper is implemented in both XXX

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

但不影响运行结果。stackoverflow上该类问题处理意见如下:


You can find all the details here:


IDEA-170117"objc: Class JavaLaunchHelper is implemented in both ..." warning in Run consoles

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 fromthis problem since both copies of that class are identical (compiled from the exact same source). It is purely a cosmetic issue.

The problem is fixed in Java 9 and in Java8 update 152.


If it annoys you or affects your apps in any way, the workaroundfor IntelliJ IDEA is to disable idea_rt launcher agent by addingidea.no.launcher=true into idea.properties (Help | Edit Custom Properties...).


照此方法可以让IntelliJ 不出现红色告警信息。



  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值