This is for Windows 11.
MATLAB and no JDK
============================================
Windows
============================================
Download the matlab install files. For example, you could do
curl https://www.cns.nyu.edu/windows/R2025b-25.2.tgz | tar xz -C Downloads
This will give you in Downloads the folder R2025b-25.2. From that folder run
the included install command.
setups.exe -inputFile installer_input-win.txt
This will install matlab 25.2 in C:\Program Files\MATLAB\R2025b\.
#: Remove vulnerable java
#: ======================
#: zip up the java that comes with matlab because it is vulnerable.
Go into the folder R2025b\sys\java\ and zip up the jre folder
and then remove the jre folder.
Note this is no longer needed but mathworks install it anyway for now.