

If App needs older than Legacy-Java 6 (1.6), then we have to get it from 'Oracle' site, as OpenJDK does not have older than Legacy-Java 6 (1.6).īy the way, OpenJDK's macOS optimized Java binary-files (and src-code) are available for Java 9 (1.9) & above, in OpenJDK archive-site. To obtain Legacy-Java, we can also get it from 'Oracle' website ('Oracle' purchased 'Sun', & 'Sun' developed Java), but Java from 'Oracle' is free only for Personal usage, & also needs user to free-registration in website, it is not-free for Commercial usage, & not-free if you want to distribute JRE with your App, etc.

( i think, upto Java SE 6 in upto macOSX High-Sierra 10.13 ). One computer can have/use multiple versions of Java JRE/JDK, etc.So user need to load those specific version, which is required by an App. Some apps specifically need to use very specific (old) version of Java SE JRE/JDK, etc."LEGACY JAVA" is older version of Java SE JRE/JDK, etc. Run/double-click on "JavaSE6.pkg" file inside ~/Downloads/tmp/ folder. Pkgutil -flatten ~/Downloads/tmp/OSXJavaSE6/ ~/Downloads/tmp/JavaSE6.pkg Sed -i '' 's/return false/return true/g' ~/Downloads/tmp/OSXJavaSE6/Distribution Hdiutil unmount "/Volumes/Java for macOS 2017-001/" Pkgutil -expand "/Volumes/Java for macOS 2017-001/JavaForOSX.pkg" ~/Downloads/tmp/OSXJavaSE6/
#Legacy java for mac mac os
This should work to enable adding legacy Java onto the Catalina Mac OS device

#Legacy java for mac install
Run this ModifiedJava6Install.pkg to install Java 6. Running the script will create a ModifiedJava6Install.pkg on your desktop.Select Script > Run from the menu, or select the "Arrow" run button.Select Script > Compile from the menu, or select the "Hammer" button to ensure the above copy and pasted code compiles. Navigate to Applications > Utilities > Script EditorĬopy the following text to the Script Editor Document: set theDMG to choose file with prompt "Please select javaforosx.dmg:" of type.
