解决:java and libinstrument.dylib One of the two will be used. Which one is undefined.

IDEA maven执行红字警告

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

解决办法:

IDEA 菜单 Help >> Edit Custom Properties
在打开的idea.properties里加上

idea_rt
idea.no.launcher=true
    原文作者:苏打柠檬水
    原文地址: https://www.jianshu.com/p/373ab3c1a136
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞