JabRef 4.3.1 with Debian stable

I try to find out if it is possible to run the current JabRef stable release 4.3.1 on a Debian stable.

Everythink with openjdk-8* openjfx-8* *headless and what ever is installed.

But the message is still

$ java JabRef-4.3.1.jar
Fehler: Hauptklasse JabRef-4.3.1.jar konnte nicht gefunden oder geladen werden

Meaning “mainclass not found”.

openjdk version "1.8.0_171"
OpenJDK Runtime Environment (build 1.8.0_171-8u171-b11-1~deb9u1-b11)
OpenJDK 64-Bit Server VM (build 25.171-b11, mixed mode)

should be possible in general, the error looks like that your java path is somehow wrong/pointing to a jdk9.
try:
sudo update-alternatives --config java

and chose the correct one.

had similiar things under ubuntu when I switched versions.

Hi,

I was able to reproduce the same issue on a clean Debian stretch install until I installed openjfx. You might also need to install OpenGL libraries (libgl1-mesa-glx and libgl1-mesa-dri) if you get GLX errors during the startup.

before openjfx

java -jar JabRef-4.3.1.jar
Error: Could not find or load main class org.jabref.JabRefMain

after openjfx install

sudo apt install openjfx
java -jar JabRef-4.3.1.jar
(jabref starts)

Hope that helps.

1 Like

Is this a FAQ?

JabRef requires Java 8. Please follow the steps provided on our installation page. JabRef does not yet run under Java 9. See Java 9/JDK9 compatibility - blocks: Java 11/JDK11 compatibility · Issue #2594 · JabRef/jabref · GitHub
You might see the error message Error: Could not find or load main class net.sf.jabref.JabRefMain. This means, you do not have JavaFX support activated in your Java runtime environment. This typically happens if you use OpenJDK, where one needs to setup OpenJFX seperately.

Our installation page recommends JDK from oracle - but one heading above, the installation for Ubuntu 16.04 is given - which is somehow similar to that was Tony says:

Just install JavaFX by executing sudo apt-get install openjfx

buhtz, could you please update our help page accordingly? I mean, adding the hints to the Debian installation hints?

Source is at :https://github.com/JabRef/help.jabref.org/blob/gh-pages/en/Installation.md

Documentation how to update is available at https://github.com/JabRef/help.jabref.org/blob/gh-pages/CONTRIBUTING.md.