vmwarenat8
V2EX  ›  Java

intellij idea] idea 在 mac Class JavaLaunchHelper is implemented why?

  •  
  •   vmwarenat8 · Mar 28, 2017 · 7292 views
    This topic created in 3508 days ago, the information mentioned may be changed or developed.

    更加详细的提示是: objc[715]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java (0x10eb9b4c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x10ecc64e0). One of the two will be used. Which one is undefined.

    认真 Check 了一下环境变量配置,都没有问题,也没有安装 jdk7 ,百度、 Google 也没有找到有效的解决方法。大家有碰到这个问题的没,如果有是怎么解决的?

    7 replies  •  2017-03-30 22:37:46 +08:00
    1stlulu
    1stlulu
    Mar 28, 2017
    1
    您的 .bashrc/.zshrc/.xxxrc 里面有如下面的两条吗?

    export JAVA_HOME=/Library/Java/JavaVirtualMachines/_________/Contents/Home
    export PATH=$JAVA_HOME/bin:$PATH
    kaneg
    kaneg
    Mar 28, 2017 via iPhone
    2
    你用的是 2017.1 这个版本吧,我也碰到了这个问题。不过查了下资料说是 Jvm 的 bug ,但是不影响功能。
    vmwarenat8
    vmwarenat8
    OP
    Mar 28, 2017
    3
    @kaneg 是的 2017.1 jdk1.8.0_121

    @1stlulu google 搜了 baidu 也搜了,这个方法也测试了
    Cbdy
    Cbdy
    Mar 30, 2017❤️1
    4
    我也遇到了这个问题,不知道怎么解决。。😳
    Cbdy
    Cbdy
    Mar 30, 2017❤️1
    6
    给出了两个解决方法, po 可以参考一下。
    vmwarenat8
    vmwarenat8
    OP
    Mar 30, 2017
    7
    @Cbdy 感谢大神,终于解决
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2565 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 15:13 · PVG 23:13 · LAX 07:13 · JFK 10:13
    ♥ Do have faith in what you're doing.