Jabref startet nicht

2753
mrchampe

Beim Versuch, Jabref zu starten, wird der folgende Fehler angezeigt

WARN No appenders could be found for logger (org.java.plugin.ObjectFactory). log4j:WARN Please initialize the log4j system properly. Oct 31, 2012 1:04:43 PM net.sf.jabref.plugin.PluginCore initialize INFO: Found 2 plugin(s): - net.sf.jabref.core (jar:file:/usr/share/java/JabRef-2.5.jar!/plugins/net.sf.jabref.core/plugin.xml) - net.sf.jabref.export.misq (jar:file:/usr/share/java/JabRef-2.5.jar!/plugins/net.sf.jabref.export.misq/plugin.xml)  Unable to create graphical interface. 

Das Betriebssystem ist Ubuntu

cat /etc/issue Ubuntu 10.04.4 LTS \n \l  uname -a Linux desktop 2.6.32-32-generic #62-Ubuntu SMP Wed Apr 20 21:52:38 UTC 2011 x86_64 GNU/Linux 

Die Java-Version ist

java -version java version "1.6.0_24" OpenJDK Runtime Environment (IcedTea6 1.11.4) (6b24-1.11.4-1ubuntu0.10.04.1) OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode) 

Und die Jabref-Version ist

jabref -v 2.5 (build 67) 

Was wirklich seltsam ist, ist, dass ich einen anderen Ubuntu-Computer ähnlich eingerichtet habe und Jabref dort fehlerfrei arbeitet. Ich habe versucht, die Unterschiede zu vergleichen, konnte aber keine finden. Ich habe auch schon versucht, Jabref neu zu installieren, aber das hat nicht geholfen.

Könnte jemand vorschlagen, wonach zu suchen ist?

4

1 Antwort auf die Frage

3
Alex

Use Oracle's JRE. Jabref seems to have problems with OpenJDK and IcedTea, as suggested here and here. Maybe only on 64-bit systems, but I don't know.

Several manuals show how to replace OpenJDK with Oracle Java, for example this. Follow them for instructions, if you generally want to use Oracle Java instead of OpenJDK.

If, instead, you want to leave your system as is, but use Oracle Java only for running JabRef, follow these steps:

  1. Download a JRE distribution. Choose the tgz package for your system (32 or 64 bit).
  2. Extract the JRE distribution into a dedicated folder, e.g. /home/user/bin/myjre.
  3. Download a JAR distribution of JabRef.
  4. Save JabRef.jar to a dedicated location, e.g. /home/user/bin/JabRef-2.9.2.jar.
  5. Execute JabRef by calling:

    /home/user/bin/myjre/bin/java -jar /home/user/bin/JabRef-2.9.2.jar

This leaves your system's OpenJDK intact and all other programs will continue to use that. Instead of steps 3 and 4 you could probably also locate the JabRef.jar that your package manager will install. This will usually be a slightly older version, however.