Neurohazard
暮雲煙月,皓首窮經;森羅萬象,如是我聞。

MacOS 安装低版本 Java 1.6

wpadmin~July 27, 2020 /System Management

MacOS 安装低版本 Java 1.6

正文

测试环境是 10.14 Mojave

https://support.apple.com/kb/dl1572?locale=en_HK

一些检查方式

➜  ~ /usr/libexec/java_home -V
Matching Java Virtual Machines (4):
    1.8.0_231, x86_64:  "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_231.jdk/Contents/Home
    1.7.0_80, x86_64:   "Java SE 7" /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home
    1.6.0_65-b14-468, x86_64:   "Java SE 6" /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
    1.6.0_65-b14-468, i386: "Java SE 6" /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

➜  ~ /usr/libexec/java_home -v 1.6
/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

之后把 Java Home 放到 sdkman 里。

Leave a Reply

Your email address will not be published. Required fields are marked *