Mac安装jdk

Posted by

Java程序必须运行在JVM之上,所以,我们第一件事情就是安装JDK。

搜索JDK 18,确保从Oracle的官网下载最新的稳定版JDK:

下载jdk
yshuqdeMacBook-Pro:~ yshuq$ java -version
java version "18" 2022-03-22
Java(TM) SE Runtime Environment (build 18+36-2087)
Java HotSpot(TM) 64-Bit Server VM (build 18+36-2087, mixed mode, sharing)