mac idea 执行报错Class JavaLaunchHelper is implemented in both *. One of the two will be used. Which one

mac idea 执行报错:
问题: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.
解决办法:
这是Mac上面Java的一个老Bug了,会在那些使用了Java Agent的IDE上运行应用时触发,但这个Error对程序是无影响的,能够无视。在Java 9和Java 1.8.152版本里已经修复了。
解决方案:
点击IJ最上面菜单的Help-Edit Custom Properties,没有这个properties文件的话,IJ会提示建立,而后在里面加上
idea .no.launcher =true
已解决。