macos - idea用maven编译成功,但总有提Class JavaLaunchHelper is implemented in both
PHP中文网
PHP中文网 2017-04-18 10:53:34
0
1
551

在mac上idea用maven编译成功,但老是有这个提示:
objc[1386]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.

运行 /usr/libexec/java_home -V :

运行 java -version:

idea版本是最新的2017.1。
有知道怎么解决这个问题的同学吗?麻烦告之,谢谢!

PHP中文网
PHP中文网

认证高级PHP讲师

reply all (1)
阿神

export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
export PATH=$JAVA_HOME/bin:$PATH
Try this

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!