iMac电脑启动ideal跑Java项目报错(Class JavaLaunchHelper is implemented in both...One of the two will be used.)

第一次在iMac上面跑ideal,启动一个main 方法出现报错(objc[19374]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java (0x10d1cb4c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x10d24f4e0). One of the two will be used. Which one is undefined.)

iMac电脑启动ideal跑Java项目报错(Class JavaLaunchHelper is implemented in both...One of the two will be used.)

当场懵圈了这是啥?我在windows上面都没见过这玩意啊,度娘一问,说是iMac上面跑Java出现的一个bug,解决方法就是:

iMac电脑启动ideal跑Java项目报错(Class JavaLaunchHelper is implemented in both...One of the two will be used.)

如果没有这个properties文件它会叫你创建,你直接点create就行了;加上一句:

idea.no.launcher=true

iMac电脑启动ideal跑Java项目报错(Class JavaLaunchHelper is implemented in both...One of the two will be used.)
添加保存后再跑;代码能生效了;但是还是有报警红红的
iMac电脑启动ideal跑Java项目报错(Class JavaLaunchHelper is implemented in both...One of the two will be used.)

重启一下

iMac电脑启动ideal跑Java项目报错(Class JavaLaunchHelper is implemented in both...One of the two will be used.)
iMac电脑启动ideal跑Java项目报错(Class JavaLaunchHelper is implemented in both...One of the two will be used.)
重启完成后再跑一下看看
iMac电脑启动ideal跑Java项目报错(Class JavaLaunchHelper is implemented in both...One of the two will be used.)
果然没有了,好了谢谢大家观看,如果有帮助到大家请点个小小赞鼓励一下。鞠躬!!