objc[8838]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java (0x10e5b04c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk

我的Mac pro IDEA2017.3.4版本报以下错,虽然不影响使用,但不能忍。

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


问题图片

解决方法:
添加:idea.no.launcher=true 到 idea.properties文件中。

怎样进这个文件:

  • 方法1: 在Finder 的应用程序中找到IDEA的图标,右键,显式包内容,contents→bin里面
  • 方法2: 看下图
    objc[8838]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java (0x10e5b04c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk_第1张图片
    找到修改ideal.properties文件的地方

    objc[8838]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java (0x10e5b04c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk_第2张图片
    修改完成

最后修改完成后重启IDEA

objc[8838]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java (0x10e5b04c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk_第3张图片
重启IDEA

你可能感兴趣的:(objc[8838]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java (0x10e5b04c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk)