How to make a Java version installed in macOS NOT accessible system wide?

To make a Java version not accessible system wide in macOS i.e. to make it only invocable from the terminal: Go to /Library/Java/JavaVirtualMachinesĀ and then inside specific JDK directory Inside /Contents rename Info.plist to Info.plist.disabled Restart the system Ref: https://stackoverflow.com/questions/21964709/how-to-set-or-change-the-default-java-jdk-version-on-os-x This is useful if you want to run an application in macOS that needs for e.g.Continue reading “How to make a Java version installed in macOS NOT accessible system wide?”