objc[9000]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.7.0

╰+攻爆jí腚メ 2022-12-25 10:51 145阅读 0赞
  1. objc[9000]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin/java (0x1074a44c0) and /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x10751e4e0). One of the two will be used. Which one is undefined.

想换jdk1.7模拟测试hashmap扩容时候的死循环,发现会有警告错误信息如上。
解决方法:要解决这个问题需要在IDEA的“Help”下点击的“Edit Custom Properties …”,打开“idea.properties”文件,然后输入下面的内容:

  1. idea.no.launcher=true

设置完重启ide即可

发表评论

表情:
评论列表 (有 0 条评论,145人围观)

还没有评论,来说两句吧...

相关阅读