Jabref 4.0 on Ubuntu 16.04 LTS

Hi,

I have dowloaded the .jar file of Jabref 4.0. The md5 checksum is OK.

When I run java -jar JabRef-4.0.jar I get
Erreur : impossible de trouver ou charger la classe principale org.jabref.JabRefMain.

Here is my java version :

openjdk version "1.8.0_151"
OpenJDK Runtime Environment (build 1.8.0_151-8u151-b12-0ubuntu0.16.04.2-b12)
OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)

How did you try to run JabRef? Through a command-line? (which one?)

Sorry, I made a mistake in the pastebin.

I used java -jar JabRef-4.0.jar

Strange: I got your error message if I type in java JabRef-4.0.jar.
But it works if I use java -jar JabRef-4.0.jar.
Could you check your command-line please?

I confirme I use the -jar options

My java version was too old. I used

Page Redirection
to solve it.

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