macOS El Capitan or newer will choose the higher version of the JDK available in /Library/Java/JavaVirtualMachines
, so in order to downgrade you may rename the file Info.plist
to something else like Info.plist.disabled
so that the OS will choose a previous version.