1 问题描述:Mac下Idea运行java程序报错:
objc[33749]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/java (0x108fd14c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x10aff14e0). One of the two will be used. Which one is undefined.
2 原因分析:
3 解决方法
(1)在idea的“Help”中点击“Edit Custom Properties”,添加以下内容后重启Idea即可
idea.no.launcher=true
(2)最后效果: