jenv
Description
To configure the JRE™, choose either the jenv version
syntax for a single user
account or the jenv -allusers version
syntax for the MATLAB® installation.
jenv(
sets the Java® path to use the version included with MATLAB, a version on your system, or the version in a specified folder. For supported
version information, see MATLAB
Interfaces to Other Languages. For more information, see Configure Your System to Use Java. You must restart MATLAB to use the updated path.version
)
This function sets the path for all future MATLAB sessions but does not change the path for other applications on your computer.
je = jenv
returns environment details as a JavaEnvironment
object.
je = jenv(___)
additionally returns environment
details as a JavaEnvironment
object. Use this syntax with any of the input argument combinations in previous
syntaxes.
Examples
Input Arguments
Tips
To use the OpenJDK JRE, download the software from https://adoptium.net/.