在mac下安装2017的IntelliJ IDEA,jdk1.8,简单写了个java类测试了下,结果可以正常输出,但是报以下错误。
objc[7169]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0
and /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x10ea194e0). One of the two will be used. Which one is undefined.
找到一个解决方案是,点击IntelliJ IDEA的【help】-【Edit Custom Properties】,首次执行idea会提示创建。在配置文件里加一行
idea.no.launcher=true
关闭idea重新打开,再执行,错误解决了。