美文网首页
[解决] Mac Intellij idea Java JDK多

[解决] Mac Intellij idea Java JDK多

作者: Reinelili | 来源:发表于2019-01-06 22:59 被阅读0次

原文链接:https://blog.csdn.net/wangyj1992/article/details/78261985

其他:https://blog.csdn.net/ruglcc/article/details/72627254  (.bash_profile)

mac idea 执行报错:

问题:Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java (0x10d19c4c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x10ea194e0). One of the two will be used. Which one is undefined.

解决办法:

这是Mac上面Java的一个老Bug了,会在那些使用了Java Agent的IDE上运行应用时触发,但这个Error对程序是无影响的,可以无视。在Java 9和Java 1.8.152版本里已经修复了。

解决方案:

点击IJ最上面菜单的Help-Edit Custom Properties,没有这个properties文件的话,IJ会提示创建,然后在里面加上

idea.no.launcher=true

已解决。

相关文章

网友评论

      本文标题:[解决] Mac Intellij idea Java JDK多

      本文链接:https://www.haomeiwen.com/subject/tiyclqtx.html