I'm trying to install Java SE 6 because I need it to use Scilab, I follow this and this tutorials for uninstall java, but still cannot install Java SE 6.
When I'm trying to install appears this message You cannot install Java for macOS 2017-001 on this disk. A newer version of this package is already installed.
The command java -version
in terminal shows No Java runtime present, requesting install.
Best Answer
Here is a simpler way, an AppleScript that removes the installation limits from Java for macOS 2017-001.
The script asks you to select the dmg file, opens the file, unpacks JavaForOSX.pkg, modifies the Distribution file and saves a new pkg file on Desktop, Java.pkg, that can be installed on Catalina.
For those who prefer doing this directly in Terminal: