Mac 上 Class JavaLaunchHelper is implemented in both 报错
2017-08-17 16:20
465 查看
在mac上使用IntelliJ Idea的时候发现在运行的时候出现了这个报错信息
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 from this 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 Java 8 update 152.
If it annoys you or affects your apps in any way, 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…).
这位外国码友清楚地解释了这个Error的原因,大概意思是说这是Mac上面Java的一个老Bug了,会在那些使用了java Agent的IDE上运行应用时触发,但这个Error对程序是无影响的,可以无视。在Java 9和Java 1.8.152版本里已经修复了。
解决方案:
点击IJ最上面菜单的Help-Edit Custom Properties,没有这个properties文件的话,IJ会提示创建,然后在里面加上
idea.no.launcher=true
相关文章推荐
- Mac 上 Class JavaLaunchHelper is implemented in both 报错
- Mac 上 Class JavaLaunchHelper is implemented in both 报错
- Mac 上idea启动程序 “Class JavaLaunchHelper is implemented in both 。。。”错误解决
- Mac 上 Class JavaLaunchHelper is implemented in both 报错
- Mac 上 Class JavaLaunchHelper is implemented in both 报错
- Mac 版本IDEA "Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachie
- Mac 版本IDEA "Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachie
- 【自用】 Mac 上 Class JavaLaunchHelper is implemented in both 报错
- 【Java】Class JavaLaunchHelper is implemented in both ** and **
- objc[8715]: Class JavaLaunchHelper is implemented in both...
- idea 启动Class JavaLaunchHelper is implemented in both 。。。
- Class JavaLaunchHelper is implemented in both … libinstrument.dylib. One of the two will be used. Wh
- objc[8715]: Class JavaLaunchHelper is implemented in both....
- Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Con
- Class JavaLaunchHelper is implemented in both. One of the two will be used. Which one is undefined
- IntelliJ IDEA提示:Class JavaLaunchHelper is implemented in both的错误解决
- objc[20556]:Class JavaLaunchHelper is implemented in both xxx 警告处理
- objc[20556]:Class JavaLaunchHelper is implemented in both xxx 警告处理
- InteliJ Idea 2017.1 for Mac 版 objc[4163]: Class JavaLaunchHelper is implemented in both XXX提示
- Class JavaLaunchHelper is implemented in both … libinstrument.dylib. One of the two will be used. Wh