MATLAB Runtime R2025b matlab_jenv.exe do not support Java 25

What running the following command in PowerShell or Windows command console:
C:\Program Files\MATLAB\MATLAB Runtime\R2025b\bin\win64\matlab_jenv.exe" -allusers "C:\Program Files\Java\jdk-25.0.2"
I get the following response:
Java version at "C:\Program Files\Java\jdk-25.0.2" not supported
Questions:
  1. Is there a workaround to accept Java version 25?
  2. If not when will "matlab_jenv.exe" be updated to accept Java version 25?

댓글 수: 1

It is not likely that R2025b will ever be updated to support Java version 25.
It is possible that R2026a (currently still in prerelease) will support Java version 25 (not sure whether it will or not)

댓글을 달려면 로그인하십시오.

답변 (1개)

Ritam
Ritam 2026년 4월 16일

0 개 추천

Unfortunately, there is currently no supported workaround to use Java version 25 with MATLAB. According to the Versions of OpenJDK Compatible with MATLAB by Release - MATLAB & Simulink documentation, the maximum supported JDK version for the relevant MATLAB releases is Java 21.

댓글 수: 2

Wow…! How can I escalate this to MathWorks so they can add support for Java 25 in MATLAB R2026a or R2026b. This limitation is going to create real problems for General Dynamics Inc. and U.S. defense programs, because we are required to migrate all software to Java 25. Without official support, this becomes a blocker for compliance and ongoing development.
You can reach out to Mathworks Technical Support through https://in.mathworks.com/company/aboutus/contact_us.html.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

릴리스

R2025b

태그

질문:

2026년 4월 13일

댓글:

2026년 4월 16일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by