由于其中一个项目使用的是Java1.7,因此我希望该版本手动运行mrunit测试用例。我在我的机器上安装了java8,也想要java7。当我运行brew cask install java7时,它抛出错误消息-错误: Cask 'java7‘is unavailable:不存在具有此名称的Cask。
由于brew cask在博客和Stackoverflow中被推荐,你能建议如何安装旧的java版本吗?
echo JAVA_HOME
/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home
brew cask
Homebrew Cask provides a friendly CLI workflow for the administration
of macOS applications distributed as binaries.
Commands:
--cache display the file used to cache the Cask
audit verifies installability of Casks
cat dump raw source of the given Cask to the standard output
create creates the given Cask and opens it in an editor
doctor checks for configuration issues
edit edits the given Cask
fetch downloads remote application files to local cache
home opens the homepage of the given Cask
info displays information about the given Cask
install installs the given Cask
brew cask install java7
Error: Cask 'java7' is unavailable: No Cask with this name exists.参考资料:http://davidcai.github.io/blog/posts/install-multiple-jdk-on-mac/
发布于 2020-02-06 20:45:54
已从Oracle站点下载程序包
https://stackoverflow.com/questions/60094595
复制相似问题