Intellji - objc[2196]: Class JavaLaunchHelper is implemented in both

Intellji 新安装JDK后编译命令行会显示这样的警告

objc[2196]: 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

虽然无害,但是这个提示很烦人

除去警告

1.打开 Help | Edit Custom Properties...

Intellji - objc[2196]: Class JavaLaunchHelper is implemented in both_第1张图片
Help | Edit Custom Properties...

2.添加下面代码,就解决了。

idea.no.launcher=true
Intellji - objc[2196]: Class JavaLaunchHelper is implemented in both_第2张图片
idea.properties

你可能感兴趣的:(Intellji - objc[2196]: Class JavaLaunchHelper is implemented in both)