AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
![]() 版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4. First, we need to install JEnv using homebrew, run the following command: brew install jenv Next, ensure that jenv is listed as a command on your shell, if you are using bash, then run echo 'export PATH'HOME/.jenv/bin:PATH'' > /.bashprofile echo 'eval ' (jenv init -)'' > /.bashprofile If using.按照 homebrew-openjdk 文档中描述,在 ~/.bashrc 或 ~/.zshrc 中添加如下内容: ~/.zshrc 1Įxport JAVA_HOME=$(/usr/libexec/java_home -v " $version") Homebrew install Java 8 (OpenJDK) on macOS Homebrew install a specified Java (AdoptOpenJDK) on macOS Manual install Java (Early-Access Builds) on macOS Switch between different JDK versions P.S At the time of writing, the latest JDK GA is JDK 15, and the early access build is JDK 16. Uninstall pkgutil: "net.adoptopenjdk.11.jdk" ![]() ![]() System_command "/usr/sbin/pkgutil", args:, print_stdout: true What is the brew command to specify the version while installing I am able to install OpenJDK using the brew command brew cask install adoptopenjdk/openjdk/adoptopenjdk8, but the version installed (1.8.0.212) is later than the one I want. Pkg "OpenJDK11U-jdk_圆4_mac_hotspot_11.0.8_10.pkg" 1 I want to install OpenJDK 8 version 1.8.0.119 on my Mac using Homebrew. # /AdoptOpenJDK was verified as official when first introduced to the caskĪppcast " #-binaries/releases/latest" 修改 /usr/local/Homebrew/Library/Taps/adoptopenjdk/homebrew-openjdk/Casks/adoptopenjdk11.rb 中 url 地址为国内源 在国内由于 github 访问速度,可能会出现安装(下载)失败的情况: log 1Ĭurl: (18) transfer closed with 100324834 bytes remaining to readĮrror: Download failed on Cask 'adoptopenjdk11' with message: Download failed:
0 Comments
Read More
Leave a Reply. |