Mac OS X : How to install an old Java version under MacOS Sierra ?


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.

Nicolas Portais
Author Photographer

Ce contenu a été publié dans Anglais, Computer / Technic / Technology, avec comme mot(s)-clé(s) , , , , , , , , , , . Vous pouvez le mettre en favoris avec ce permalien.

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Captcha (solve the arithmetic equation) * Time limit is exhausted. Please reload CAPTCHA.