You cannot install Java for a single user. Installing the JDK and JRE on macOS is performed on a systemwide basis for all users. Administrator privileges are required to install the JDK and JRE on macOS.
When you install the JDK, it also installs the JRE. However, the system will not replace the current JRE with a lower version.
To determine the current JRE version installed on your system, see Determining the JRE Version Installed on macOS. To install an earlier version of the JRE, you must first uninstall the current version. See Uninstalling the JRE on macOS.
When you install the JRE, you can install only one JRE on your system at a time. The system will not install a JRE that has an earlier version than the current version.
To determine the current JRE version installed on your system, see Determining the JRE Version Installed on macOS. To install an earlier version of the JRE, you must first uninstall the current version. See Uninstalling the JRE on macOS.
Note:
Installing a JRE from Oracle will not update java -version symlinks or add java to your path. To do this, you must install the JDK.
Install Jre Mac
Mac OS X Lion (version 10.7) is the eighth major release of Mac OS X (now named macOS), Apple's desktop and server operating system for Macintosh computers. A preview of Mac OS X 10.7 Lion was publicly shown at the 'Back to the Mac' Apple Special Event on October 20, 2010. It brought many developments made in Apple's iOS, such as an easily navigable display of installed applications, to the. If you are installing JRE 8u40, then follow these steps: Download the file. Before the file can be downloaded, you must accept the license agreement. From either the Downloads window of the browser, or from the file browser, double click the file.dmg to launch it. But there is no jre dir for it. Java -version still returns: java version '1.6.065' Java(TM) SE Runtime Environment (build 1.6.065-b14-466.1-11M4716) Java. I just did this for Mac OSX Yosemite. – Jared Burrows Jan 30 '15 at 3:22. It turns out that it is not enough to install JRE on Mac OS to have it registered and listed by /usr.