gpt4 book ai didi

homebrew - 错误 : Cask 'java7' is unavailable: No Cask with this name exists

转载 作者:行者123 更新时间:2023-12-05 08:12:40 28 4
gpt4 key购买 nike

由于其中一个项目使用的是 Java 1.7,我希望该版本能够手动运行 mrunit 测试用例。我在我的机器上安装了 java8,还想要 java7。当我运行 brew cask install java7 时,它会抛出错误消息 - 错误:Cask 'java7' 不可用:不存在具有此名称的 Cask。

由于博客和 Stackoverflow 中建议使用 brew cask,您能否建议如何安装旧的 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/

最佳答案

从 Oracle 站点下载包

关于homebrew - 错误 : Cask 'java7' is unavailable: No Cask with this name exists,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60094595/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com