How to run JabRef on Ubuntu 15.10

When you install JabRef 2.10 on Ubuntu with apt-get install jabref , after that if you run it, jabref never load.
If you go to the CLI, you can see this as follows:

log4j:WARN No appenders could be found for logger (org.java.plugin.ObjectFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Found 2 plugin(s):
  - net.sf.jabref.export.misq (jar:file:/usr/share/jabref/JabRef-2.10.jar!/plugins/net.sf.jabref.export.misq/plugin.xml)
  - net.sf.jabref.core (jar:file:/usr/share/jabref/JabRef-2.10.jar!/plugins/net.sf.jabref.core/plugin.xml)

The problem is associated with java version. Probably, you have a java version above 6 (oracle java 7 or 8). One solution is install a lower version like version 6.
The other solution is download the lastest version compatible with your java version.

wget http://tenet.dl.sourceforge.net/project/jabref/v3.2/JabRef%20Version%203.2.tar.gz
tar xzvf JabRef\ Version\ 3.2.tar.gz

or download it from github
git clone https://github.com/JabRef/jabref

Now, to run JabRef you need to execute ./gradlew run inside the jabref folder
If you want to create a .jar, you need to execute ./gradlew releaseJar
The jar file will be created in build/release folder
Now, you can execute: java -jar JabRef-3.2.jar



If you are using openjdk, you need change it to oracle binary with this command:
sudo update-alternatives --config java




Comments

Popular posts from this blog

Exception: Could not find a default OpenFlow controller in Mininet

How to fix Android when developer options are not available for this user

Webcam streaming throught VLC with YUY2 compatibility