You cannot install Java for a single user. The following are the system requirements for installing the JDK on macOS: This topic includes the following sections: System Requirements for Installing the JDK on macOS The Liberica OpenJDK package with the HotSpot Virtual Machine viably replaces the Java 8 (LTS), 9, 10, 11 (LTS), 12, 13, 14, 15.
Liberica JDK provides Long term Support for all of its open source builds that act as alternatives for Java application development toolkits. Because of its strong development support, this SDK package represents the most popular and widely used. Java Development Kit for Mac (also known as JDK) is a highly professional cross-platform SDK platform created and regularly supported by Oracle Corporation.With a goal of providing specific implementation of Java SE, Java EE and Java ME platforms developers from all around the world use it.