Maison > Questions et réponses > le corps du texte
在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。
有知道怎么解决这个问题的同学吗?麻烦告之,谢谢!
阿神2017-04-18 10:55:34
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home
export PATH=$JAVA_HOME/bin:$PATH
Essayez ceci