matlab_jenv
To configure the JRE™, choose either the matlab_jenv version
syntax for a single
user account or the matlab_jenv -allusers version
syntax for the
MATLAB® installation.
Description
matlab_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.version
The matlab_jenv
command does not start MATLAB. To use MATLAB, start MATLAB at the same system prompt where you set the path variable.
This command sets the path for all future MATLAB sessions but does not change the path for other applications on your computer.
matlab_jenv -allusers
sets the path
for all users. Use to set the Java path for MATLAB Runtime.version
The matlab_jenv version
syntax takes precedence over the
matlab_jenv -allusers version
syntax.
matlab_jenv -help
displays the syntax.
Examples
Input Arguments
Tips
To use the OpenJDK® JRE, download the software from https://adoptium.net/.