IntelliJ idea运行java 报错解决方法.

在用intelliJ运行java的时候提示报错.

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

网上搜了下说这个是无害的Mac的老BUG

解决方法

【Preferences】- 【Editor】-【General】-【Console】

添加Class JavaLaunchHelper is implemented in both

如图

image

发表评论

邮箱地址不会被公开。