在Mac上,升级IntelliJ Idea 2017.01后,运行的时候出现了一个红色的警告:
objc[8715]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/java (0x102c804c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/libinstrument.dylib
(0x102d5c4e0). One of the two will be used. Which one is undefined.
解决方法:
在idea中,进行修改idea.properties
打开idea --> 工具栏Help --> Edit Custom Properties...
![objc[8715]: Class JavaLaunchHelper is implemented in both... objc[8715]: Class JavaLaunchHelper is implemented in both...](/default/index/img?u=L2RlZmF1bHQvaW5kZXgvaW1nP3U9YUhSMGNITTZMeTl3YVdGdWMyaGxiaTVqYjIwdmFXMWhaMlZ6THpRNU15OHpaalV6TVdRMU16QmtPR05sTjJSbE5qZzFPR00yTlRSbVpHUTFOR000TlM1d2JtYz0=)
添加一下内容
#custom IntelliJ IDEA properties
idea_rt
idea.no.launcher=true
重启idea就可以了