idea 在mac下安装,运行时报JavaLaunchHelper类被实现了两次Error

来源:互联网 发布:网络贷款利息如何计算 编辑:程序博客网 时间:2024/05/18 11:50

在mac下安装2017的IntelliJ IDEA,jdk1.8,简单写了个java类测试了下,结果可以正常输出,但是报以下错误。

objc[7169]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0and /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x10ea194e0). One of the two will be used. Which one is undefined.

找到一个解决方案是,点击IntelliJ IDEA的【help】-【Edit Custom Properties】,首次执行idea会提示创建。在配置文件里加一行
这里写图片描述

idea.no.launcher=true

关闭idea重新打开,再执行,错误解决了。

阅读全文
0 0
原创粉丝点击