objc[20556]:Class JavaLaunchHelper is implemented in both xxx 警告處理


今天在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即可

2.png


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM