首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >错误:容器'java7‘不可用:不存在具有此名称的容器

错误:容器'java7‘不可用:不存在具有此名称的容器
EN

Stack Overflow用户
提问于 2020-02-06 20:04:10
回答 1查看 3.6K关注 0票数 3

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

由于brew cask在博客和Stackoverflow中被推荐,你能建议如何安装旧的java版本吗?

代码语言:javascript
复制
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/

EN

回答 1

Stack Overflow用户

发布于 2020-02-06 20:45:54

已从Oracle站点下载程序包

票数 -2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60094595

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档