The following are the system requirements for installing the JDK and the JRE on macOS:
Os X Mojave
% brew search java Formulae app-engine-java java javacc jslint4java pdftk-java google-java-format java11 javarepl libreadline-java 2.3 The Java 8 is available at the openjdk@8 formula. The openjdk is the same as the java formula, and it always contains the latest JDK GA version; the openjdk@11 is the same as the java11 formula, containing. JAVAHOME should point to jdk directory and not to jre directory. Also JAVAHOME should point to the home jdk directory and not to jdk/bin directory. Assuming that you have JDK installed in your program files directory then you need to set the JAVAHOME like this: JAVAHOME='C: Program Files Java jdkxxx' xxx is the jdk version. ONNX Runtime is built and tested with CUDA 10.2 and cuDNN 8.0.3 using Visual Studio 2019 version 16.7. ONNX Runtime can also be built with CUDA versions from 10.1 up to 11.0, and cuDNN versions from 7.6 up to 8.0. The path to the CUDA installation must be provided via the CUDAPATH environment variable, or the -cudahome parameter.
Java 6 Runtime Os X
Any Intel-based computer running macOS.
Administrator privileges.
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 addjava
to your path. To do this, you must install the JDK.