Skip to content

Commit 13b90d2

Browse files
committed
doc jenv
1 parent f393648 commit 13b90d2

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

Readme.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,24 @@ by using the
4444
[jenv](https://www.mathworks.com/help/matlab/ref/jenv.html)
4545
Matlab function.
4646

47-
Matlab-stdlib has been test with JVM from version 8 to 17.
47+
For example, to use the [JDK 17 on macOS](https://www.oracle.com/java/technologies/downloads/#jdk17-mac) download and extract the ARM64 Compressed Archive.
48+
Tell Matlab to use this JDK from the Matlab console by:
4849

49-
## Acknowledgements
50+
```matlab
51+
jenv("/path/to/jdk-17/Contents/Home")
52+
```
53+
54+
To
55+
[revert back to the factory JRE](https://www.mathworks.com/help/matlab/ref/matlab_jenv.html)
56+
if Matlab can't start or has problems, from system Terminal do:
57+
58+
```sh
59+
matlab_jenv factory
60+
```
61+
62+
63+
Matlab-stdlib has been tested with JVM versions 8 and 17.
64+
65+
## Acknowledgments
5066

5167
Stdlib for Matlab was partly funded by NASA NNH19ZDA001N-HDEE grant 80NSSC20K0176.

0 commit comments

Comments
 (0)