
There can be multiple versions of the JDK, but, the JRE version can be only one (latest). It is possible JRE may have the a different version that the JDK. To start a Java application, the system uses the default JDK version. The above command will display the installed Java version.ĭetermining the Default JDK Version on macOS This will start the Java Control Panel, after this, click on About to display the version information.Įnter the following command on terminal: % /Library/Internet\ Plug-Ins/ugin/Contents/Home/bin/java -version Visit System Preferences->Other section->Java. The JRE version can be determned by the following ways: However, it will not replace with the older versions. Installing the JRE will replaces the previous version. There can be only one JRE version on the system.

Installing the JRE will not contain the JVM or other Java libraries for creating applications. However, the current JRE version will not be replaced with the lower version of JRE. Java can not be installed for a single user instead it is installed systemwide for all users.

Important points to be considered while installing Java on MacOS:Ī computer running macOS and having administrator privileges. The system requirements and considerations for installing the JDK and the JRE on macOS are as following: System Requirements to install Java on mac

