今天在Mac上对IntelliJ Idea 进行了升级
升级到2017.01后,运行程序时,出现以下红色警告:
objc[20556]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/bin/java (0x108ada4c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x108bb64e0). One of the two will be used. Which one is undefined.
* 上说这是Mac上的java 一个bug,不过这并不影响正常的编程工作。
解决方法:
在idea中,进入 Help > Edit Custom Properties...
修改idea.properties,添加以下内容:
# custom IntelliJ IDEA properties
idea_rt
idea.no.launcher=true
重启idea即可
![objc[20556]:Class JavaLaunchHelper is implemented in both xxx 警告处理 objc[20556]:Class JavaLaunchHelper is implemented in both xxx 警告处理](https://image.shishitao.com:8440/aHR0cHM6Ly91cGxvYWQtaW1hZ2VzLmppYW5zaHUuaW8vdXBsb2FkX2ltYWdlcy82MDgzOTQwLTI1YWFhODY1MTI1ZWU0ZTYucG5nP2ltYWdlTW9ncjIvYXV0by1vcmllbnQvc3RyaXAlN0NpbWFnZVZpZXcyLzIvdy8xMjQw.png?w=700)