---
title: "How to install a legacy JDK 1.6 on Mojave with SDKMAN"
date: 2018-12-10T00:00:00+00:00
author: "poornerd"
canonical: https://www.poornerd.com/2018/12/10/how-to-install-a-legacy-jdk-16-on-mojave-with-sdk-man.html
source: Raw Markdown twin of the HTML article; content is the original source.
---
It took awhile to figure this out, so I thought I would share it.  First you have to have SDKMAN installed ([https://sdkman.io](https://sdkman.io)).  Then you have to download the legacy JDK 1.6 from Apple here [https://support.apple.com/kb/dl1572?locale=en_US](https://support.apple.com/kb/dl1572?locale=en_US)

Once that is installed, you have to link the Apple JDK with a symbolic link in the SDKMAN canidates directory, and install it.

```
$ cd ~/.sdkman/candidates/java
$ ln -s /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/ 1.6.0.jdk
$ sdk use java 1.6.0.jdk
$ java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-468)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-468, mixed mode)
```

