Mac 上idea启动程序 “Class JavaLaunchHelper is implemented in both 。。。”错误解决

今天更新最新版本IntelliJ IDEA时遇到Class JavaLaunchHelper is implemented in both错误,大致是:
objc[99623]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/bin/java (0x1015e54c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x102e5c4e0). One of the two will be used. Which one is undefined.

解决办法
点击IntelliJ IDEA上面菜单的”Help”下的“Edit Custom Properties”,在文件中加上 idea.no.launcher=true
这里写图片描述
重启再试

PS:若没有idea.properties文件,则点击“Edit Custom Properties”会提示创建一个,再在里面加入idea.no.launcher=true

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章