jenv
Description
jenv(
sets the Java® path to use the version included with MATLAB®, the default version on your system, or the version in a specified folder.
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(___)
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/. Choose OpenJDK 8 (Hot Spot).