No - Java is cross-plattform - and not bound to a specific Linux-distribution. Even though, the eco system makes it simpler to provide installers and packags for certain distributions.
Update: Yes, currently jpackage only supports ubuntu on Linux. This is because of some “internal” routing to UI libraries specific for Linux vs. macOS vs. Windows
It would be great if you could provide us with an exception stack trace of the build failure
I don’t think jbundle is helping us here right now. That is still very much WIP.
Jpackage should work on gentoo as well, despite the naming of the targets for ubuntu. That are just names.
Mabye you are missing some package stuff for creating rpms?
I have some problems reporting the error message: the --stacktrace flag gives me a very long error message and I can’t copy-pase here. Also I can’t upload files
After build fails I noticed that some files are generated inside jabgui/build/packages.
I run bin/JabRef and it works
So the building process fails but generates a working executable (I apologize because I didn’t check before asking)
The command ./gradlew :jabgui:ShadowJar works correctly but when I run the jar file (cd into folder then java -jar jabgui-100.0.0-all.jar) I have the following error:
Error: LinkageError occurred while loading main class org.jabref.Launcher
java.lang.UnsupportedClassVersionError: org/jabref/Launcher has been compiled by a more recent version of the Java Runtime (class file version 69.0), this version of the Java Runtime only recognizes class file versions up to 61.0
Running the jabgui-linux-amd64 downloaded from the given link starts the JabRef GUI but immediately spawns some errors.
java.lang.UnsupportedClassVersionError: org/jabref/Launcher has been compiled by a more recent version of the Java Runtime (class file version 69.0), this version of the Java Runtime only recognizes class file versions up to 61.0
You need JDK 25; your Java version is not the right one
./gradlew :jabui:jpackagefails, but produces working binary
./gradlew :jabui:shadowJarproduces a jar, but requires a JDK25
With jbundle, there will be a self-extracting JDK+JabRef bundle - with latest main, you are able to build it using jbundle build --input . --gradle-project jabgui --output jabref