Package Details: java-matlab 1:R2025b+25.2.0.2998904-4

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-r2025b, java-matlab-runtime
Provides: java-matlab-r2025b, java-matlab-release, java-matlab-version
Submitter: ido
Maintainer: vitaliikuzhdin
Last Packager: vitaliikuzhdin
Votes: 41
Popularity: 0.049249
First Submitted: 2015-08-15 09:33 (UTC)
Last Updated: 2025-10-23 23:13 (UTC)

Dependencies (6)

Required by (1)

Sources (1)

Pinned Comments

Latest Comments

1 2 3 4 5 6 .. 30 Next › Last »

vitaliikuzhdin commented on 2026-03-06 15:29 (UTC)

@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

Petapton commented on 2026-03-06 00:47 (UTC)

@vitaliikuzhdin why is gnutls3.8.9 a make dependency?

vitaliikuzhdin commented on 2025-10-23 23:14 (UTC)

@DarkestZero, no idea how I missed that. Fixed, thank you!

DarkestZero commented on 2025-10-23 09:04 (UTC) (edited on 2025-10-23 09:09 (UTC) by DarkestZero)

To enable optional products,

Changes made:

  1. Line 205: Replace dashes ("-") with underscores ("_") to spaces (" ").

  2. 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

vitaliikuzhdin commented on 2025-10-21 17:46 (UTC)

@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/?

bbaovanc commented on 2025-10-18 00:31 (UTC)

Weird, for me when I run matlab_jenv system or matlab_jenv -allusers system, it says:

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 

I can't remember a point where it ever worked for me, even about a month ago when I was first trying it. I have a lot of JDKs installed, so there should be plenty to choose from, unless that's part of the problem?

$ pacman -Qs jdk 
local/jdk-openjdk 25.u36-1
    OpenJDK Java 25 development kit
local/jdk11-openjdk 11.0.28.u6-1
    OpenJDK Java 11 development kit
local/jdk17-openjdk 17.0.16.u8-1
    OpenJDK Java 17 development kit
local/jdk8-openjdk 8.462.u08-1
    OpenJDK Java 8 development kit
local/jre8-openjdk 8.462.u08-1
    OpenJDK Java 8 full runtime environment
local/jre8-openjdk-headless 8.462.u08-1
    OpenJDK Java 8 headless runtime environment

vitaliikuzhdin commented on 2025-10-12 11:47 (UTC)

@bbaovanc, thank you for taking the time to look into this. Unfortunately, I’m still not able to get it to work. As I’ve already mentioned, patchelf should no longer be relevant, since the new license server doesn’t seem to suffer from this issue. I also had gtk2 installed both before and after the breakage, and that doesn’t seem to help either.

About a week ago, I reinstalled MATLAB in the hope of getting it to work, and I was able to do so by running:

find "/usr/lib/gnutls3.8.9" -maxdepth 1 -type f,l -name 'lib*.so*' -exec \
    ln -vsf {} ~/.MathWorks/ServiceHost/-mw_shared_installs/v*/bin/glnxa64/ \;

The v* expression expanded to something like v2025.10.*.* (I don’t remember the exact version). Interestingly, after activating, crashing, and patching the execstack, the usual login asked me to confirm my email by redirecting me to https://www.mathworks.com/mwaccount/widgets/embedded/profiles/verify/confirm, which had never happened before. I then tried to reproduce the behaviour to confirm that I’d found the root cause, but after that, the expression only expanded to v2025.8.1.1, and I wasn’t able to “update” it. Still, this confirms that Arch itself isn’t blocked, which is very good news.

Regarding Qt5, I used to remove the bundled runtime to make it work on Wayland without extra tinkering, but as you and @AnonymePalme reported, this causes issues, so I’ve stopped removing any runtimes. We’re now using matlab-meta and java-matlab-meta to pull in the dependencies, just like before I took over maintenance.

As for Java, I’m removing the bundled JDK in favour of the system-wide one. MATLAB actually supports this natively. The java-matlab package also includes a .hook and an .install file to correctly set the JDK. For me, this works even with a broken license server:

$ 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 

$ pacman -Qs jdk
local/jdk17-openjdk 17.0.16.u8-1
    OpenJDK Java 17 development kit

Before the breakage, this setup had always worked for me, including for the Add-on Store. Could you please show your output?

Also, regarding Simulink, is there a reason you install it with chowns and the Add-on Store instead of enabling the product in the PKGBUILD?

bbaovanc commented on 2025-10-11 23:56 (UTC)

So after chowning /opt/MATLAB to my user so I can install addons, I am getting the same issue as @AnonymePalme when trying to use Simulink. It complains about what seems to be QNetworkAccessManager::ignoreSslErrors missing from the system's Qt5?

The following error is retyped by hand because MATLAB doesn't let me highlight and copy paste from the error box; there might be typos:

Can't load '/opt/MATLAB/R2025a/bin/glnxa64/libmwdastudio.so', this error is normally caused by a missing or mismatching library from the dependency chain of the named library.
Details: 'Error loading /opt/MATLAB/R2025a/bin/glnxa64/builtins/shared_dastudio_builtins/mwdastudio_builtinimpl.so.
/opt/MATLAB/R2025a/bin/glnxa64/builtins/shared_dastudio_builtins/../../../../bin/glnxa64/libmwglee2_qt.so:
undefined symbol:
_ZN21QNetworkAccessManager15ignoreSslErrorsERK5QListI9QSslErrorE, version Qt_5: No such file or directory: No such file or directory'

bbaovanc commented on 2025-10-11 20:22 (UTC) (edited on 2025-10-11 23:33 (UTC) by bbaovanc)

I got the 5201 error mentioned earlier, so decided to give up and try changing the version of the package back to R2025a. It works now, but add-ons menu doesn't even though I have now installed java-matlab.

Warning: Unable to find Java library: /opt/MATLAB/R2025a/java/lib/server/libjvm.so
Please check if you have a MATLAB_JAVA environment variable.
Note that MATLAB requires Java version 1.8 or higher.

If I look at the java-matlab package contents, there's no libjvm.so, or even java/lib at all. Am I supposed to do some other step

EDIT: I think I have everything working now. I don't remember the exact steps I did, but I do remember gtk2 being a hard dependency of everything. Then I was able to do the patchelf command after running and crashing matlab, use product authorizer somewhere along the line, and I can run 2025b. I also fixed the add-on store by manually selecting the openjdk-8 I have installed in the settings for the JRE path in matlab. I also chown'd /opt/MATLAB to my user so I could install add-ons. Is there a better way to be able to have write access to the MATLAB folder/

AnonymePalme commented on 2025-10-03 21:15 (UTC)

Hello fellow Matlab users, I had the Issue that Matlab installed by this script is shipping an incomplete Qt stack which resulted in simulink crashing, I could fix this by coping libQt5* to /opt/MATLAB/R2025b/bin/glnxa64 from the unzipped matlab R2025b install folders /bin/glnxa64 might be nice to include it, with this small fix I now got a fully working matlab/simulink from this package thanks for your work