Package Details: matlab-jre-factory 1:R2026a+26.1.0.3346908-1

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 (JRE, factory)
Upstream URL: https://www.mathworks.com/products/matlab.html
Keywords: computation matlab numerical visualization
Licenses: custom:MATLAB EULA
Conflicts: matlab-r2026a-jre-factory
Provides: matlab-jre, matlab-jre-factory-release, matlab-jre-factory-version, matlab-r2026a-jre, matlab-r2026a-jre-factory
Submitter: ido
Maintainer: vitaliikuzhdin
Last Packager: vitaliikuzhdin
Votes: 42
Popularity: 0.47
First Submitted: 2015-08-15 09:33 (UTC)
Last Updated: 2026-09-19 14:47 (UTC)

Dependencies (5)

Required by (1)

Sources (0)

Pinned Comments

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 .. 32 Next › Last »

vitaliikuzhdin commented on 2025-09-30 19:38 (UTC)

After spending a few days trying to find the root cause, I have gathered the following points:

  1. The breakage is not related to client-side system updates. Everything was working on 2025-09-27, but on 2025-09-28, with no changes to the system or the license, it stopped working.

  2. The breakage is not related to client-side package updates. I downgraded to a cached R2025a release and encountered the same error. I also tried generating packages and manually installing older releases (R2025a, R2024b, R2024a, ...) and all of them failed with the same error. Some of the older releases do not have ABI mismatch problems, which rules those out.

  3. The breakage is not related to gnutls, libstdc++, libtiff, or any other previously known issues, including execstack. I tested different versions of these libraries and different package releases, and the problem remained.

  4. The breakage does not crash the application or the license server. In the past, MATLAB would crash and provide a stack trace and other details. This time it simply exits with an error code and no (public) instructions for fixing it.

  5. The breakage behaves exactly like a damaged license server. Previously, the package broke after an update due to execstack issues, which required manually patching the license server library. That only worked when patched after installation and activation. When I attempted to patch it automatically in the PKGBUILD, I received the same error seen now.

Based on this, it appears MathWorks is now blocking unsupported operating systems through a license server check. This looks like another case of DRM causing unnecessary problems. For now, Arch users may need to use VMs, containers, systemd-nspawn, or other workarounds to make it run. If the next release (R2026a) is also broken, it will be reasonable to assume this will never work legally, and I will request that this package be deleted. It was a good run, and I thank everyone who contributed.

ido commented on 2025-09-29 05:42 (UTC)

@kyak, that systemd-nspawn (MATLAB in a container) method seems convoluted, but a bit more futureproof than the package. Thanks for sharing it. (I wish MathWorks took on source distribution (Arch/Gentoo/Nix) support instead of only supporting Debian/RHEL-based distros.)

kyak commented on 2025-09-28 15:16 (UTC)

Hi fellow MATLAB users,

After spending years fixing breakages in MATLAB following Arch updates (which often came in as a surprise), I'm happily running MATLAB in systemd-nspawn now.

It doesn't take much time to get it up and running, see https://wiki.archlinux.org/title/MATLAB#MATLAB_in_a_systemd-nspawn

The last time I updated this piece of wiki was around R2021b, but it's mostly the same as of R2025b.

vicious commented on 2025-09-28 12:37 (UTC)

greetings, i found my typo and tried again. i got the same error as you.

but thank you alot!

vitaliikuzhdin commented on 2025-09-28 12:30 (UTC)

Never mind, MATLAB is broken for me again. It was working just yesterday, but as of today I'm getting this during initialization:

$ matlab -desktop
Unable to communicate with required MathWorks services (error 5201).


For help with this issue, contact support: 
https://www.mathworks.com/support/contact_us.html


Unable to launch MVM server: License Error: Licensing shutdown

The error is exactly the same as when I tried to patch execstack during build() instead of asking the user to do it manually. Again, it still launches with root privileges (sudo matlab -desktop). I've checked all *.so files, and none of them have execstacks now, even without patching. Also, glibc has been updated to 2.42, which was supposed to fix any issues with execstacks. MathWorksProductAuthorizer works just fine, so it doesn't look like a gnutls issue to me.

If anyone is able to find a solution, I would be grateful.

vitaliikuzhdin commented on 2025-09-27 20:57 (UTC)

Package updated to R2025b.

Apologies for not being able to help here for a while. The bad news is that R2025b still targets ubuntu24.04 / ubi9, which means it inherits all the same problems as R2025a. The good news is that all the issues I'm aware of are now covered by the package.

@Fitti, @britin, I was able to reproduce the issue by not activating MATLAB before launching it. Please read the post-installation instructions more carefully next time, you only ran one of the two required commands.

@bbaovanc, the "APPS / Get More Apps" menu (among others) requires java-matlab to be installed to function properly.

@vicious, you have an extra f at the end of the file name.

@daniel_shub, thanks for the information. Packaging (and honestly, even just using) MATLAB is a huge pain, and unless someone specifically requests an older release, I won’t be spending weeks of effort to support it.

Regarding the toolboxes: the days of matlab.fic and matlab.lic are long gone. The last release to support that method was R2023a. Everything since then can only be installed non-interactively using MPM, or via an .iso for a selected license (which I don't have access to).

That said, this isn’t really the core issue. I was able to write a script to split a product based on the files stored in appdata/. It took quite a bit of effort, there’s no public documentation, and some files overlapped between products. This forced me to create helper scripts and hooks to back up and merge shared files. While MATLAB did recognize the products as installed, it didn’t provide any menu options to launch them. I suspect some kind of service registration is required, but I wasn’t able to reverse-engineer that part. And even if I had, most products have shared components that overlap, which makes this style of packaging even more complex.

tree_yang commented on 2025-09-27 09:38 (UTC)

MATLAB R2025a crashed on my machine everytime when I tried to use parpool. I have tried the solution provided by @bbaovanc, but it did not work. However, after I replaced "gnutls-3.8.9-1-x86_64.pkg.tar.zst" by "gnutls-3.8.8-1-x86_64.pkg.tar.zst", it worked successfully.

daniel_shub commented on 2025-09-15 18:10 (UTC)

@vitaliikuzhdin I am just reading your pinned message now. As for your points 6 and 7, there might be some useful tidbits in my original AUR4 upload (https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=matlab&id=54a6fe5c2e92bcb3b781aa58d50ccaa473de0e90)

I think pre-AUR4, I had different packages for each version, but those commits seem to be lost to history. The first AUR4 upload supported multiple versions, but I dropped that support since it was hellish to maintain.

In terms of packaging the toolboxes separately, years ago when there was a fik and a lic, I could never get this to work properly. If you are going to try and package the add ons separately, you really need multiple licenses so you can see what happens for a shared machine that has multiple users with multiple licenses. That is no small feat.

vicious commented on 2025-09-15 13:29 (UTC)

i get this after running the postinstall script:


~ ✗ sudo patchelf --clear-execstack ~/.MathWorks/ServiceHost/-mw_shared_installs/v*/bin/glnxa64/libmwfoundation_crash_handling.sof
patchelf: getting info about '/home/eric/.MathWorks/ServiceHost/-mw_shared_installs/v*/bin/glnxa64/libmwfoundation_crash_handling.sof': No such file or directory

bbaovanc commented on 2025-09-13 05:33 (UTC) (edited on 2025-09-13 07:25 (UTC) by bbaovanc)

I want to install Simulink. So, I tried to use the addons menu. But I am getting an error:

Error using matlab.internal.addons.UiMessageHandler
Error: File: UiMessageHandler.m Line: 373 Column: 20
Unable to find or import 'com.mathworks.addons_common.notificationframework.InstalledAddOnsCache'. Imported names
must end with '.*' or be fully qualified.

Error in matlab.internal.addons.Explorer (line 31)
            uiMessageHandler = matlab.internal.addons.UiMessageHandler(matlab.internal.addons.Explorer.SERVER_TO_CLIENT_CHANNEL);
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in matlab.internal.addons.Explorer.getInstance (line 42)
                obj = matlab.internal.addons.Explorer();
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in matlab.internal.addons.launchers.showExplorer (line 180)
        if matlab.internal.addons.Explorer.getInstance.windowExists
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Anyone know what to do about this?