This page describes how to install Java, which is required for JabRef.JabRef itself can be either installed using the installer or just running the jar file.You get these files from https://www.jabref.org/#downloads.
How to Install JavaFX on Eclipse. Bit_life - August 24, 2017. Share on Facebook. Here are all the.jar files that are needed to install Java FX on Eclipse. This is a basic Java FX class that Eclipse created for us when we installed it.Compile it and you will see a blank window. Main.java program. The JavaFX Runtime is what you get when you download JavaFX. The JavaFX Runtime consists of a set of Java libraries to enable modern looking user.
On Windows, the installer automatically downloads the OracleJDK (i.e. Java).You can also install it manually as described here.
The installation steps are written having the JavaFX development branch in mind.Thus, it especially describes installing JavaFX.
- Supported JDKs and JREs
- Installation Commands
- JabRef 5.x
- JabRef 4.x
- Debian Jessie 8 and Oracle Java
Supported JDKs and JREs
JabRef 5.x
JabRef 5.x is distributed with a bundled Java Runtime Enviornment. There is no need for any Java installation anymore.
JabRef 4.x
JabRef 4.x requires JRE 8 (and does not run at JRE 9 onwoards)
JavaFX is not included in every Java runtime environment or development kit.Therefore, we highly recommend to use Oracle Java 8.JavaFX is included since Java 1.8.0_60.The other official support for JavaFX is OpenJDK with the external library OpenJFX.Unfortunately, the installation is not always straight forward.Therefore, we only recommend this if you know what you are doing.In case you want to use OpenJDK with OpenJFX in general you should follow this instructions.For Ubuntu 16.04 LTS and 18.04 LTS head to the section Installation Commands.
Verify Java Installation
In case you already have a Java version installed - or you closely followed the steps below, you can check your Java version by typing the following command into your command line interface:
java -version
It is possible having multiple Java versions at the same time.On debian based Linux distributions set your preferred Java version using the following command:
sudo update-alternatives --config java
and choose it by typing the number matching the Java version.
Your Java version should look like this, depending on your operating system and JDK/JRE:
Oracle Java 32-Bit:
Oracle Java 64-Bit:
OpenJDK 32-Bit:
OpenJDK 64-Bit:
If this does not report to be a product from Oracle (for instance tells you that it is a GCJ VM) even if you have installed the Oracle JVM then you need to change your setup.In the following, the installation is documented for Ubuntu, Debian, Fedora, CentOS, Windows, and MacOSX.
Installation Commands
JabRef 5.x
JabRef 5.x is shipped with a lightweight Java runtime environment that includesonly the Java dependencies JabRef uses. There are two major ways of obtainingJabRef for your platform.
Building From Source
This method is mainly for package maintainers and users who would like to buildthe latest snapshots of JabRef directly from the source.
To build JabRef from source, you first need to have a working Java DevelopmentKit 11 (JDK 11) and Git installed on your system. After installing the tworequirements, you open a terminal window (i.e., a command prompt) and type thefollowing:
In a nutshell, you clone the latest snapshot of JabRef into
jabref
directory,change directory to jabref
, initialize and update all the submodules(dependencies) of JabRef, assemble them to be built via JDK 11, and finallybuild and link them together.The output should be the
build/image
subdirectory that contains the JabRefbinary with all of its Java dependencies. To start JabRef, you need to runbin/JabRefMain
(in Linux and MacOS) or bin/JabRefMain.bat
(in Windows) underbuild/image
subdirectory.Using Prebuilt Binaries
This method is mainly for anyone who would like to download and run the latestsnapshot of JabRef.
To use the prebuilt binaries, simply visit http://builds.jabref.org/master/ anddownload the packaged binaries (e.g.,
dmg
files for MacOS and exe
files forWindows), run them and follow the instructions. We also provide generic archivefiles (e.g., tar.gz
files for Linux and MacOS, and zip
files for Windows)which can be downloaded and extracted. Inside the archive files you will find abin
subdirectory which contains the binary needed to run JabRef (i.e.,JabRefMain
for Linux and MacOS, and JabRefMain.bat
for Windows).JabRef 4.x
Ubuntu and Oracle Java
This applies for both 32bit and 64bit and both Ubuntu 14.04 LTS, 16.04 LTS and 18.04 LTS.
![Javafx jar download Javafx jar download](http://jfxtras.org/images/gallery/DateTextField.png)
Install Oracle JDK with “personal packages archiv (ppa)” which includes an automated update function:
- Add repository:
sudo add-apt-repository ppa:webupd8team/java
- Update package list:
sudo apt-get update
- Install:
sudo apt-get install oracle-java8-installer
If you want to install JRE or install java without ppa you should follow these instructions.
Ubuntu and OpenJDK
Just install JavaFX by executing
sudo apt-get install openjfx
.For Ubuntu 18.04 and newer,
openjfx
uses the Java version 11 which is currently not supported by JabRef. Hence, use an older version:- If you accidently installed the new version, remove it with
sudo apt purge openjfx
. - Install an older version with
sudo apt install openjfx=8u161-b12-1ubuntu2 libopenjfx-jni=8u161-b12-1ubuntu2 libopenjfx-java=8u161-b12-1ubuntu2
. - To prevent the software updater from installing the newer not supported version, mark it to be not updated with
sudo apt-mark hold openjfx libopenjfx-jni libopenjfx-java
.
This also works for Linux Mint 19.1 Tessa which is based on Ubuntu 18.04.
Debian Jessie 8 and Oracle Java
Using the ppa
- Add repository:
sudo sh -c 'echo 'deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main' >> /etc/apt/sources.list'
- Add GPG key:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
- Update package list:
sudo apt-get update
- Install:
sudo apt-get install oracle-java8-installer
Based on: http://tecadmin.net/install-java-8-on-debian/
Directly from Oracle
- Download tag.gz-file from the Java SE Development Kit 8 Downloads site
- Navigate to the folder where you downloaded the tar.gz-file
- Create package with
make-jpkg jdk-[Version]-linux-x64.tar.gz
including the most recent Java version instead of[Version]
- Get root access with
su
- Install with
dpkg -i oracle-java8-jdk_[Version].deb
Fedora 23 and Oracle Java
- Download rpm-file from the Java SE Development Kit 8 Downloads site
- Navigate to the folder where you downloaded the rpm-file
- Install:
rpm -ivh jdk-8u101-linux-x64.rpm
- Upgrade:
rpm -Uvh jdk-8u101-linux-x64.rpm
- Set alternatives:
alternatives --config java
(choose Oracle version)
Recent JabRef builds are available at https://build.opensuse.org/package/show/home:cornell_vrdc/jabref3.
Fedora and OpenJDK
- Install OpenJDK:
sudo dnf install java-1.8.0-openjdk
- Install JavaFX (actually OpenJFX):
sudo dnf install openjfx java-1.8.0-openjdk-openjfx
- Download the JabRef-[version].jar from the JabRef Website.
- In the folder of the jar-file run
java -jar JabRef-[version].jar
Warning: To install JavaFX, it is not sufficient to just install the
openjfx
package.Warning: There is a bug in openjfx
in Fedora 29.JabRef versions newer than 4.3.1 will not work with OpenJDK and Fedora 29 until this is fixed. See also issue 4473.CentOS 6 or 7 and Oracle Java
![Download Download](https://download.java.net/general/javafx/eclipse/images/folder_selection_javafs_sdk_root_folder.png)
- Download rpm-file from the Java SE Development Kit 8 Downloads site
- Install with
sudo yum localinstall jre-[Version]-linux-[BIT].rpm
include the most recent Java version for[Version]
andi586
orx64
for[BIT]
depending on your OS version
openSUSE
The necessary Java packages can be installed via “1-click installs”:
Arch and Manjaro
Two packages are available in the Arch User Repository (AUR):
- jabref: The current release
- jabref-latest: The latest version from the GitHubmaster branch
Both packages install precompiled jar files and add a command and a .desktop file to the OS.
Windows and Oracle Java
The “modern” way:
- Install chocolatey by following the steps described at https://chocolatey.org/install
- Execute
choco install jre8
At any time, you can update to the latest Java runtime environment by executing
choco upgrade all
.The “old” way:
- Download exe file from the Java SE Development Kit 8 Downloads site
- Run installation wizzard
Mac OS and Oracle Java
- Download dmg-file from the Java SE Development Kit 8 Downloads site
- Run installation wizzard
Freezes when running JabRef
Some users with macOS Sierra have reported freezes when using JabRef. Apparently, adding a host mapping for 127.0.0.1 seems to solve these issues.
Random freezes have also been reported on several Linux distributions. It seems that the
GTKLookAndFeel
is causing these problems and selecting a different look and feel class under Options -> Appearance -> Look and Feel
solves the problem.JabRef and OpenOffice/LibreOffice integration
The connection from JabRef to Libre Office requires some office related
jar
-archives to be present.The Windows installer for OpenOffice/LibreOffice automatically installs the required libraries.For Linux you have to install the package libreoffice-java-common
.