@bbaovanc, it seems I've found the cause of JDK not being recognised for you by default:
$ archlinux-java get
java-17-openjdk
$ matlab_jenv
JavaEnvironment with properties
Version : openjdk version "17.0.16" 2025-07-15
OpenJDK Runtime Environment (build 17.0.16+8)
OpenJDK 64-Bit Server VM (build 17.0.16+8, mixed mode, sharing)
Home : /usr/lib/jvm/java-17-openjdk
Library : /usr/lib/jvm/java-17-openjdk/lib/server/libjvm.so
Configuration : system
# archlinux-java set java-25-openjdk
$ matlab_jenv
Unable to locate Java "system" version
Download and install a supported version of Java. For more information
https://www.mathworks.com/support/requirements/language-interfaces.html
Alternatively, to use the MATLAB-provided JRE, type:
matlab_jenv factory
$ pacman -Qs jdk
local/jdk-openjdk 25.u36-1
OpenJDK Java 25 development kit
local/jdk17-openjdk 17.0.16.u8-1
OpenJDK Java 17 development kit
Technically, I could ship the built-in JDK or specify the system-wide version with MATLAB_JAVA
, but that wouldn't be a great solution since it wastes space and doesn't allow customization. I think I will just add an instruction for anyone who has newer JDKs installed to specify the version manually, that shouldn't be a big burden.
Also, has the recent update which now keeps the bundled Qt runtime fix the errors for you? And could you please help me fix my install by telling me what is your output for ls ~/.MathWorks/ServiceHost/-mw_shared_installs/
?
Pinned Comments