升级到2017.01后,运行程序时,出现以下红色警告:
objc[20556]:ClassJavaLaunchHelperisimplementedinboth /Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/bin/java (0x108ada4c0)and/Library/Java/JavaVirtualMachines/jdk1.8.0_.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x108bb64e0). Oneofthe two will be used. Which oneisundefined.
stackoverflow 上说这是Mac上的java 一个bug,不过这并不影响正常的编程工作。
在idea中,进入 Help > Edit Custom Properties…
修改idea.properties,添加以下内容:
1.# custom IntelliJ IDEA properties
2.idea_rt
3.idea.no.launcher=true
重启idea即可