@roughcast-finali, thanks for the report. Something to do with GnuTLS again, I'll look into it. For now, you can use:
$ LD_PRELOAD="/usr/lib/libgnutls.so" MathWorksProductAuthorizer
| Git Clone URL: | https://aur.archlinux.org/matlab.git (read-only, click to copy) |
|---|---|
| Package Base: | matlab |
| Description: | A high-level language for numerical computation and visualization (Java components) |
| Upstream URL: | https://www.mathworks.com/products/matlab.html |
| Keywords: | computation matlab numerical visualization |
| Licenses: | custom:MATLAB EULA |
| Conflicts: | java-matlab-r2026a |
| Provides: | java-matlab-r2026a, java-matlab-release, java-matlab-version |
| Submitter: | ido |
| Maintainer: | vitaliikuzhdin |
| Last Packager: | vitaliikuzhdin |
| Votes: | 41 |
| Popularity: | 0.011868 |
| First Submitted: | 2015-08-15 09:33 (UTC) |
| Last Updated: | 2026-04-16 18:15 (UTC) |
@roughcast-finali, thanks for the report. Something to do with GnuTLS again, I'll look into it. For now, you can use:
$ LD_PRELOAD="/usr/lib/libgnutls.so" MathWorksProductAuthorizer
Hello I would like to report that matlab itself works, but authorizing is not working properly
[MATLAB]/R2026a/bin/glnxa64/MathWorksProductAuthorizer.sh makes segmentation fault
using: LD_PRELOAD="/usr/lib/libnettle.so /usr/lib/libhogweed.so /usr/lib/libgnutls.so"" /opt/MATLAB/R2026a/bin/glnxa64/MathWorksProductAuthorizer.sh
succesfully launch the authorizer,
after login in matlab works properly now, seems that MathWorksProductAuthorizer.sh is a problem
@vitaliikuzhdin No worries at all. Thanks for the tips and thanks for putting all the work to get matlab working on Arch! I'll see if I have time soon to test if this works on my system.
@PlanetaryTyler, sorry, changed a lot in the packaging of the ecosystem but forgot to push the update here. To get the Java components, you need to install java-matlab which should also give you a choice of which supported JDK to pull. Then, if said JDK is not configured as the default Java on your machine, you will also have to mangle with MATLAB_JAVA, matlab_jenv or GUI settings. When I'll have time, I will write a set of pacman hooks to handle this automatically, which will also allow the user to choose between the system-wide JDK and the bundled one. Sorry for all of the inconveniences until that actually happens. Here is a snippet from the script that might help you:
-> NOTE: MATLAB requires the system to use a compatible JDK version.
You can view and change the current system-wide Java provider:
$ archlinux-java get
# archlinux-java set <JAVA_NAME>
You can also configure MATLAB to use a specific JDK without changing the system default:
$ matlab_jenv /usr/lib/jvm/<JAVA_NAME>
$ matlab_jenv -allusers /usr/lib/jvm/<JAVA_NAME>
Using environment variables (higher precedence):
$ export MATLAB_JAVA=/usr/lib/jvm/<JAVA_NAME>
% setenv MATLAB_JAVA /usr/lib/jvm/<JAVA_NAME>
Graphical configuration (inside MATLAB GUI):
HOME → Environment → Settings → MATLAB → General → Java Runtime Environment → Java Runtime Environment Path
Been having a hard time getting java enabled. tried multiple jdk versions that are compatible but Matlab cant seem to load it. tried both matlab_jenv and setting MATLAB_JAVA, but neither get matlab to actually load java. Wanted to install java-matlab but java-matlab-meta appears to be dead. Any thoughts about how to fix this?
@Petapton, it should also be a runtime dependency but it seems like I forgot to add that. Please keep it installed manually until I have the time to update the package. The reason is described here: https://bbs.archlinux.org/viewtopic.php?id=305604
@vitaliikuzhdin why is gnutls3.8.9 a make dependency?
@DarkestZero, no idea how I missed that. Fixed, thank you!
To enable optional products,
Changes made:
Line 205: Replace dashes ("-") with underscores ("_") to spaces (" ").
Line 214: Adjust formatting by removing quotes around "${_product_list:+${_product_list} }MATLAB".
# Modified code:
# Line 205:
_product_list+="${_product// /_} " # Changed from _product//-/_}
# Line 214:
--products=${_product_list:+${_product_list} }MATLAB \ # Removed quotes
@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
vitaliikuzhdin commented on 2026-05-13 08:33 (UTC)
@roughcast-finali, thanks for the report. Something to do with GnuTLS again, I'll look into it. For now, you can use: