Jabref 4.0 on Ubuntu 16.04 LTS


(Maïeul) #1

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)

#2

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


(Maïeul) #3

Sorry, I made a mistake in the pastebin.

I used java -jar JabRef-4.0.jar


#4

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?


(Maïeul) #5

I confirme I use the -jar options


(Maïeul) #6

My java version was too old. I used

https://help.jabref.org/en/Installation#supported-jdks-and-jres
to solve it.


(Oliver Kopp) #7

Is this a FAQ?

http://help.jabref.org/en/FAQlinux

JabRef requires Java 8. Please follow the steps provided on our installation page. JabRef does not yet run under Java 9. See https://github.com/JabRef/jabref/issues/2594
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:

http://help.jabref.org/en/Installation#ubuntu-1604-and-openjdk

Just install JavaFX by executing sudo apt-get install openjfx