今天在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.
stackoverflow 上說這是Mac上的java 一個bug,不過這並不影響正常的編程工作。
解決方法:
在idea中,進入 Help > Edit Custom Properties...
修改idea.properties,添加以下內容:
# custom IntelliJ IDEA properties
idea_rt
idea.no.launcher=true
重啟idea即可
