- Exit MATLAB respectively from all MATLAB's running on the external monitor.
- Plug in macOS with external monitor.
- Start MATLAB.
- Open a new or existing .m file and - if available - a .mlx file. Check the .m file or the .mlx file displayed correctly or not.
- Install Adoptium OpenJDK 8 JRE (.pkg version) from https://adoptium.net/temurin/releases/?version=8&os=mac.
- Note the path of the JRE installation folder.
- Configure MATLAB to use the OpenJDK 8 JRE by following insturctions from the following workaround provided in the MATLAB answer: https://www.mathworks.com/matlabcentral/answers/103056-how-do-i-change-the-java-virtual-machine-jvm-that-matlab-is-using-on-macos
- Launch MATLAB and call “version -java” to verify that the Java version indicates “OpenJDK”.