I am using MacOS sierra but I have applications that need the JVM version 6.0
I don’t recommend you to install an older Java version on MacOS sierra as you will brake your system.
You will find below the solution
1. Download older java version from Apple
Note: don’t install the pkg into your system.
2. Double click on javaforosx.dmg
Extract the pkg somewhere
$ pkgutil --expand /Volumes/Java\ for\ OS\ X\ 2015-001/JavaForOSX.pkg jdk16
You will get theee files
$ ll total 16 -rwxr-xr-x@ 1 user staff 4219 13 aoû 2015 Distribution drwxr-xr-x 7 user staff 238 23 nov 23:11 JavaEssentials.pkg drwxr-xr-x 5 user staff 170 23 nov 23:09 JavaForOSX.pkg drwxr-xr-x 7 user staff 238 23 nov 23:12 JavaMDNS.pkg
3. Extract the files from the two packages JavaEssentials.pkg and JavaForOSX.pkg
The Payload file is a gzipped cpio archive.
$ gzip -dc JavaEssentials.pkg/Payload | cpio -iv - $ gzip -dc JavaForOSX.pkg/Payload | cpio -iv -
Some links need to change by a relative path instead of an absolute path
4. Create a link from the system Library to your jdk directory
$ cd /Library/Java/JavaVirtualMachines $ sudo ln -s /Users/.../jdk16/Library/Java/JavaVirtualMachines/1.6.0.jdk .
Java 6 should work now 🙂
If I helped you, I thank you to donate some euros to pay the server.