Skip to content

Commit

Permalink
Add installation instructions for Gentoo for JabRef 5 (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanlukasczyk authored and Siedlerchr committed Aug 30, 2019
1 parent 91d18b6 commit 56e00b7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions en/Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Thus, it especially describes installing [JavaFX].
- [Installation Commands](#installation-commands)
- [JabRef 5.x](#jabref-5x-1)
- [Ubuntu](#ubuntu)
- [Gentoo](#gentoo)
- [JabRef 4.x](#jabref-4x-1)
- [Ubuntu and Oracle Java](#ubuntu-and-oracle-java)
- [Ubuntu and OpenJDK](#ubuntu-and-openjdk)
Expand Down Expand Up @@ -119,6 +120,23 @@ In the following, the installation is documented for Ubuntu, Debian, Fedora, Cen

Now, you should be able to execute `java -jar JabRef--master--latest.jar`

#### Gentoo

Gentoo provides AdoptOpenJDK 11 in its package `dev-java/openjdk-bin`; it is not available for 32-bit systems! This guide assumes that you have a system with working GUI, it was not tested on a headless system.

Be aware that this guide changes your default system JVM, which is currently not supported by Gentoo devs and may cause problems with other Java-related packages!

1. Unmask the package if you do not have unmasked the `~amd64` as a system default: `echo ">=dev-java/openjdk-bin-11.0.4_p11 ~amd64" >> /etc/portage/package.accept_keywords`
2. Unmask the `gentoo-vm` useflag in order to select Java 11 as a system VM (currently not supported by Gentoo devs): `echo "dev-java/openjdk-bin -gentoo-vm" >> /etc/portage/profile/package.use.mask`
3. Add the `gentoo-vm` useflag before installing the package: `echo ">=dev-java/openjdk-bin-11.0.4_p11 gentoo-vm" >> /etc/portage/package/use`
4. Install: `emerge -av dev-java/openjdk-bin:11`
5. View the list of available JDKs: `java-config -L`
6. Select AdoptOpenJDK 11: `java-config -S openjdk-bin-11`

Now, you should be able to execute `java -jar JabRef--master--latest.jar`.

If you do not want to change your system VM, skip step 6 and start JabRef by calling `/opt/openjdk-bin-11.x.y/bin/java -jar JabRef--master--latest.jar` with x and y being the version installed.

### JabRef 4.x

#### Ubuntu and Oracle Java
Expand Down

0 comments on commit 56e00b7

Please sign in to comment.