macOS映像中的appVeyor中AdoptOpenJDK 8.232的安装路径是什么? [英] What is the installation path of AdoptOpenJDK 8.232 in appVeyor in the macos image?
问题描述
/usr/local/Cellar/appveyor-build-agent/7.0.2546/bash-shell.sh:第62行:/Library/Java/JavaVirtualMachines/jdk1.8.0_232:无此类文件或目录
/usr/local/Cellar/appveyor-build-agent/7.0.2546/bash-shell.sh: line 62: /Library/Java/JavaVirtualMachines/jdk1.8.0_232: No such file or directory
export JAVA_HOME=`/Library/Java/JavaVirtualMachines/jdk1.8.0_232.jdk/Contents/Home`
/usr/local/Cellar/appveyor-build-agent/7.0.2546/bash-shell.sh:第62行:/Library/Java/JavaVirtualMachines/jdk1.8.0_232.jdk/Contents/Home:无此类文件或目录
/usr/local/Cellar/appveyor-build-agent/7.0.2546/bash-shell.sh: line 62: /Library/Java/JavaVirtualMachines/jdk1.8.0_232.jdk/Contents/Home: No such file or directory
export JAVA_HOME=`/usr/libexec/java_home -v 8 --exec javac -version`
无法找到任何与版本8"匹配的 JVM.
Unable to find any JVMs matching version "8".
推荐答案
感谢这个答案.
- export JAVA_HOME=$(/usr/libexec/java_home -v 1.8.0_232)
如您所见,我正在向程序java_home询问版本 1.8.0_232
的安装路径.
As you can see I'm asking the program java_home for the installation path of the version 1.8.0_232
.
这篇关于macOS映像中的appVeyor中AdoptOpenJDK 8.232的安装路径是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!