- Download the installer .dmg files. They contain the good stuff.
- Mount the .dmg and copy the .pkg file to somewhere
- Open a terminal and cd to the folder you copied the .pkg file into pkgutil --expand JDK\ 7\ Update\ 60.pkg JDK7u60 - extract pkg file to folder
- cd JDK7u60/ - move to the extracted pkg
- cd jdk17060.pkg/ - there's a folder with the version number ending with .pkg (but it's just a folder), go there
- Unpack Payload using Archive Utility (use "Open with" in finder), it's located at /System/Library/CoreServices/Applications
- Copy the jdk to where you want it and set JAVA_HOME
- Done!
Created
March 21, 2018 13:19
-
-
Save RichoDemus/aa0ef79962ac7c2e4e059d450b7067dc to your computer and use it in GitHub Desktop.
Details on how to extract java from the dmg-file so you don't have to run the oracle installer on MacOS
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment