objc[8838]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0

个人Mac pro IDEA2017.1版本报如下错,虽然不影响使用,可是比较蛋疼。java

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

解决方法:
添加:idea.no.launcher=true 到 idea.properties文件中。idea

怎样进这个文件:class

  1. 在Finder 的应用程序中找到IDEA的图标,右键,显式包内容,contents→bin里面