objc[999]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines

  • Post author:
  • Post category:java




IDEA报错

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



出错原因

这是一个java在Mac上的一个系统bug;

java9或者java8 update 152 后已经修复。



解决方式

  1. 打开IEDA;
  2. Help –> Edit Custom Properties

    即(帮助 -> 编辑自定义属性。如果提示没有,可新建)
  3. 在配置文件中添加如下配置:


    # custom IntelliJ IDEA properties



    idea_rt



    idea.no.launcher=true
  4. 重启IDEA。

同样的,IDEA还可能会报objc[1060] ,objc[1071] , objc[46679], objc[3087]等错误代码,解决方式基本一样。

类似的:

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

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

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



版权声明:本文为baixifeng原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。