简体   繁体   English

如何在MacOS上安装特定的JDK(jdk1.8.0_152.jdk)?

[英]How to install specific JDK (jdk1.8.0_152.jdk) on MacOS?

For the life of me I can't figure this out. 对于我的一生,我无法弄清楚。

IntelliJ is supposed to be bundled with this version I thought but it doesn't appear in my /Library/Java/JavaVirtualMachines . 我认为IntelliJ会与此版本捆绑在一起,但不会出现在我的/Library/Java/JavaVirtualMachines

I used brew to install the current version of java8 which is jdk1.8.0_202.jdk but that isn't what our production servers are using and it actually has some features that get in my way right now. 我使用brew安装了java8的当前版本,即jdk1.8.0_202.jdk但这不是我们的生产服务器所使用的版本,它实际上具有一些当前困扰我的功能。

Oracle only gives the ability to download jdk1.8.0_211.jdk or jdk1.8.0_212.jdk and I don't see a feature to look at historical versions. Oracle仅提供下载jdk1.8.0_211.jdkjdk1.8.0_212.jdk的功能,并且我没有看到用于查看历史版本的功能。

I'm fairly sure this is a redundant question and I apologize for that but I can't seem to find it anywhere despite searching for a couple of hours at this point. 我相当确定这是一个多余的问题,对此我深表歉意,尽管此时我已经搜索了几个小时,但似乎无法在任何地方找到它。

Oracle provides an archive of every version of Java. Oracle提供了每个 Java版本的存档。 If you're specifically looking for a sub-version of Java 8 , they have that, too. 如果您正在寻找Java 8的子版本,他们也有。

The simplest way to install, remove, and switch between different JDKs on MacOS is with SDKMAN . 在MacOS上不同JDK之间安装,删除和切换的最简单方法是使用SDKMAN Currently, the following JDK versions are supported: 当前,支持以下JDK版本:

$ sdk l java
================================================================================
Available Java Versions
================================================================================
     13.ea.19-open       10.0.2-zulu       * 7.0.181-zulu                       
     12.0.1-sapmchn      10.0.2-open         1.0.0-rc-16-grl                    
     12.0.1-zulu         9.0.7-zulu          1.0.0-rc-15-grl                    
     12.0.1-open         9.0.4-open          1.0.0-rc-14-grl                    
     12.0.1.j9-adpt    + 8u152-zulu                                             
     12.0.1.hs-adpt      8.0.212-zulu                                           
     12.0.1-librca       8.0.212-amzn                                           
     11.0.3-sapmchn      8.0.212.j9-adpt                                        
     11.0.3-zulu         8.0.212.hs-adpt                                        
     11.0.3-amzn         8.0.212-librca                                         
     11.0.3.j9-adpt      8.0.202-zulu                                           
     11.0.3.hs-adpt      8.0.202-amzn                                           
     11.0.3-librca       8.0.202-zulufx                                         
     11.0.2-open     > + 8.0.201-oracle                                         
     11.0.2-zulufx       7.0.222-zulu                                           

================================================================================
+ - local version
* - installed
> - currently in use
================================================================================

SDKMAN can also be used to install other JVM-based tools, languages, and frameworks such as Groovy, Grails, Ant, Gradle, Kotlin, Maven, Scala. SDKMAN还可以用于安装其他基于JVM的工具,语言和框架,例如Groovy,Grails,Ant,Gradle,Kotlin,Maven,Scala。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM