I had the same issue as last time with the latest version (4.25-1). I have java-11-temurin installed, which includes the missing jni.h file and also fulfills the necessary jdk11-openjdk dependency; however, the PKGBUILD sets the JAVA_HOME to /usr/lib/jvm/java-11-openjdk regardless of whether the openjdk version is installed or not.
I could build the package by changing the path to /usr/lib/jvm/java-11-temurin.
It would be great if you could consider cases like this for building the package, @carsme. In the meantime, I'll leave this comment with the workaround for me or anyone else to find the next time I stumble with the same problem.
Pinned Comments
Rhinoceros commented on 2026-02-20 03:56 (UTC)
This package hasn't been updated for ages and fails to build anyway. I created a new, current, binary version at https://aur.archlinux.org/packages/swt-bin, which seems to work fine for me.