@Bevan: I used (2) java-openjdk-bin, and Jabref has installed and works. At least, it starts and opens my files.
Search Criteria
Package Details: jabref 5.10-2
Package Actions
Git Clone URL: | https://aur.archlinux.org/jabref.git (read-only, click to copy) |
---|---|
Package Base: | jabref |
Description: | Graphical Java application for managing BibTeX and biblatex (.bib) databases |
Upstream URL: | https://www.jabref.org/ |
Licenses: | MIT |
Submitter: | Allan |
Maintainer: | Bevan |
Last Packager: | Bevan |
Votes: | 209 |
Popularity: | 1.15 |
First Submitted: | 2012-06-07 22:47 (UTC) |
Last Updated: | 2023-09-26 20:11 (UTC) |
Dependencies (4)
- archlinux-java-run
- java-runtime (java-gcj-compat, jre10, jdk12-openj9-bin, zulu-12-bin, jre6, jre12, server-jre, jdk13-openj9-bin, jdk9-openj9-bin, jdk10, jdk10-openj9-bin, jdk14-openj9-bin, jdk7, jre7, zulu-14-bin, amazon-corretto-15, zulu-embedded-jdk8, sapmachine-jdk-bin, amazon-corretto-16, jdk8-graalvm-bin, jdk16-graalvm-bin, jre8-openjdk-shenandoah, zulu-16-bin, jdk16-adoptopenjdk, jdk16-microsoft-openjdk, jdk11-msopenjdk-bin, jdk18-beta-temurin, jdk8-arm, jre17-jetbrains, liberica-jdk-11-bin, liberica-jdk-11-lite-bin, liberica-jre-11-bin, jre11-jetbrains-imfix, java-openjdk-loom-ea-bin, jdk7-j9-bin, jdk7r1-j9-bin, jdk8-j9-bin, jdk11-j9-bin, jre11-jbr-xdg, jre16-openjdk, jre13-openjdk, jre14-openjdk, jre-bcl, jdk-bcl, amazon-corretto-18, zulu-18-bin, zulu-13-bin, jre15, jre14, jre13, jre16, bishengjdk-17, bishengjre-17, jdk-arm, jdk11-openj9-bin, jdk-openj9-bin, jre-jbr-xdg, jre18-openjdk, jdk18-openj9-bin, jdk-android-studio, amazon-corretto-19-bin, zulu-19-bin, jdk19-graalvm-bin, liberica-jre-11-full-bin, jdk19-graalvm-ee-bin, jdk13-openjdk-bin, zulu-embedded-jdk, jre8-openjdk-xdg, jre17-openjdk-xdg, jre15-openjdk, zulu-embedded-jdk11, liberica-jre-8-full-bin, jdk11-graalvm-bin, jdk18-temurin, jre19-openjdk, jdk11-microsoft-openjdk, jre-openj9, jdk11-graalvm-ee-bin, zulu-jre-fx-bin, jre17-jetbrains-imfix, jdk11-openjdk-dcevm, jre12-openjdk, jdk8-dragonwell-extended, jdk-jetbrains, jdk8-dragonwell-extended-bin, jdk8-dragonwell-standard-bin, jdk11-dragonwell-extended-bin, jdk11-dragonwell-standard-bin, jdk11-jetbrains-bin, jdk8-openj9-bin, jdk17-dragonwell-standard-bin, amazon-corretto-8, zulu-8-bin, zulu-20-bin, zulu-jdk-fx-bin, jdk-temurin, jdk17-graalvm-ee-bin, jdk20-graalvm-ee-bin, liberica-jdk-8-full-bin, jdk20-graalvm-bin, jdk17-graalvm-bin, mandrel-bin, jre-lts, jdk17-zulu-prime-bin, jdk8-graalvm-ee-bin, jdk8-aarch64, jdk8-temurin, jre17, jre8-adoptopenjdk, liberica-jdk-11-full-bin, liberica-jdk-17-full-bin, amazon-corretto-20-bin, amazon-corretto-17, zulu-15-bin, jdk8, jre8, jdk21-jetbrains-bin, jre21-jetbrains-imfix, amazon-corretto-11, jdk17-jetbrains-bin, jdk-microsoft-openjdk, jdk17-openj9-bin, jdk20-openj9-bin, java-openjdk-bin, zulu-21-bin, amazon-corretto-21-bin, jre11, liberica-jdk-full-bin, jre-openjdk-xdg, jdk11-temurin, jdk17-temurin, jre, zulu-11-bin, zulu-17-bin, jre-jetbrains, java-openjdk-ea-bin, jre-openjdk, jre11-openjdk, jre17-openjdk, jre8-openjdk)
- java-environment (java-gcj-compat, zulu-10-bin, jdk12-openj9-bin, zulu-12-bin, jdk12, jdk13-openj9-bin, jdk9-openj9-bin, jdk10, jdk10-openj9-bin, jdk14-openj9-bin, jdk7, zulu-14-bin, amazon-corretto-15, zulu-embedded-jdk8, sapmachine-jdk-bin, amazon-corretto-16, jdk8-graalvm-bin, jdk16-graalvm-bin, jdk8-openjdk-shenandoah, zulu-16-bin, jdk16-adoptopenjdk, jdk16-microsoft-openjdk, jdk11-msopenjdk-bin, jdk18-beta-temurin, jdk8-arm, jdk17-jetbrains, liberica-jdk-11-bin, liberica-jdk-11-lite-bin, liberica-jre-11-bin, jdk11-jetbrains-imfix, java-openjdk-loom-ea-bin, jdk7-j9-bin, jdk7r1-j9-bin, jdk8-j9-bin, jdk11-j9-bin, jdk11-jbr-xdg, jdk16-openjdk, jdk13-openjdk, jdk14-openjdk, jdk-bcl, amazon-corretto-18, zulu-18-bin, zulu-13-bin, bishengjdk-17, jdk-arm, jdk11-openj9-bin, jdk-openj9-bin, jdk-jbr-xdg, jdk18-openjdk, jdk18-openj9-bin, jdk-android-studio, amazon-corretto-19-bin, zulu-19-bin, jdk19-graalvm-bin, liberica-jre-11-full-bin, jdk19-graalvm-ee-bin, jdk13-openjdk-bin, zulu-embedded-jdk, jabba-bin, jdk8-openjdk-xdg, jdk17-openjdk-xdg, jdk15-openjdk, zulu-embedded-jdk11, liberica-jre-8-full-bin, jdk11-graalvm-bin, jdk18-temurin, jdk19-openjdk, jdk11-microsoft-openjdk, jdk-openj9, jdk11-graalvm-ee-bin, jdk17-jetbrains-imfix, jdk11-openjdk-dcevm, jdk12-openjdk, jdk8-dragonwell-extended, jdk-jetbrains, jdk8-dragonwell-extended-bin, jdk8-dragonwell-standard-bin, jdk11-dragonwell-extended-bin, jdk11-dragonwell-standard-bin, jdk11-jetbrains-bin, jdk8-openj9-bin, jdk17-dragonwell-standard-bin, amazon-corretto-8, zulu-8-bin, zulu-20-bin, zulu-jdk-fx-bin, jdk-temurin, jdk17-graalvm-ee-bin, jdk20-graalvm-ee-bin, liberica-jdk-8-full-bin, jdk20-graalvm-bin, jdk17-graalvm-bin, mandrel-bin, jdk-lts, jdk17-zulu-prime-bin, jdk8-graalvm-ee-bin, jdk8-aarch64, jdk8-temurin, jdk8-adoptopenjdk, liberica-jdk-11-full-bin, liberica-jdk-17-full-bin, amazon-corretto-20-bin, amazon-corretto-17, zulu-15-bin, jdk8, jdk21-jetbrains-bin, jdk21-jetbrains-imfix, amazon-corretto-11, jdk17-jetbrains-bin, jdk-microsoft-openjdk, jdk17-openj9-bin, jdk20-openj9-bin, java-openjdk-bin, zulu-21-bin, amazon-corretto-21-bin, jdk11, liberica-jdk-full-bin, jdk-openjdk-xdg, jdk11-temurin, jdk17-temurin, jdk, zulu-11-bin, zulu-17-bin, jre-jetbrains, java-openjdk-ea-bin, jdk-openjdk, jdk11-openjdk, jdk17-openjdk, jdk8-openjdk) (make)
- python (python36, python32, python37, python39, python38, python310, python312) (optional) – browser extension
Required by (0)
Sources (3)
Vitrum-cnkj34kr8 commented on 2023-09-26 23:11 (UTC) (edited on 2023-09-26 23:14 (UTC) by Vitrum-cnkj34kr8)
Bevan commented on 2023-09-26 20:55 (UTC)
@Vitrum-cnkj34kr8: Unfortunately, none of those options is the one I would suggest. "jdk-openjdk" (https://archlinux.org/packages/extra/x86_64/jdk-openjdk/) is the JDK included in the Arch repositories and it provides java-environment 21. So maybe just go ahead and install jdk-openjdk manually before building this package.
Vitrum-cnkj34kr8 commented on 2023-09-26 20:48 (UTC) (edited on 2023-09-26 20:50 (UTC) by Vitrum-cnkj34kr8)
On update, it asks me to choose a java-environment. Which one is the correct?
:: There are 8 providers available for java-environment=21:
1) amazon-corretto-21-bin
2) java-openjdk-bin
3) jdk
4) jdk-openjdk-xdg
5) jdk21-jetbrains-bin
6) jdk21-jetbrains-imfix
7) liberica-jdk-full-bin
8) zulu-21-bin
Bevan commented on 2023-09-26 20:17 (UTC)
The reason why I could not reproduce the issue is that I had jdk-temurin installed which currently is still at version 20. This means that gradle somehow tries to find a JDK matching the version specified as toolchain, no matter what we set via archlinux-java-run as $JAVA_HOME.
The best solution I can think of right now is exactly what Pavlov suggested: setting the toolchain in build.gradle to version 21 and forcing the use of JDK 21 for compilation and execution of JabRef. This is what I just pushed as jabref 5.10-2.
If anyone has a suggestion how we can avoid this issue while being more flexible with the JDK versions, please leave a comment.
Bevan commented on 2023-09-26 19:45 (UTC)
Thanks Pavlov! By replicating your exact setup I am now able to reproduce the issue. I'll try to find the root cause.
Pavlov commented on 2023-09-26 10:18 (UTC)
I've "resolved" it by replacing
toolchain {
languageVersion = JavaLanguageVersion.of(20)
}
with
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
in build.gradle
. It seems that JabRef requires exactly JDK20 to compile, however Arch Linux doesn't provide any package containing version 20 of JDK anymore.
Pavlov commented on 2023-09-26 07:00 (UTC)
@Bevan these are the outputs.
archlinux-java status
:
Available Java environments:
java-11-openjdk
java-17-openjdk
java-21-openjdk
java-8-openjdk/jre (default)
archlinux-java-run -a 20 -f jdk -j
:
/usr/lib/jvm/java-21-openjdk
Bevan commented on 2023-09-25 17:48 (UTC)
@carlosal1015: I tried with Java 17 and while building the package works, launching JabRef does not. So I think at least version 20 is required.
@Pavlov and @vanja_z: I could not reproduce your issue yet. Can you please post the output of the following commands?
- archlinux-java status
- archlinux-java-run -a 20 -f jdk -j
carlosal1015 commented on 2023-09-25 17:19 (UTC)
Hi, is mandatory java-runtime>=20
or could be relaxed until 17?
Pavlov commented on 2023-09-25 13:57 (UTC)
Even with archlinux-java-run=10-1
the problem persists:
Execution failed for task ':compileJava'.
> Error while evaluating property 'javaCompiler' of task ':compileJava'.
> Failed to calculate the value of task ':compileJava' property 'javaCompiler'.
> No matching toolchains found for requested specification: {languageVersion=20, vendor=any, implementation=vendor-specific} for LINUX on x86_64.
> No locally installed toolchains match and toolchain download repositories have not been configured.
Pinned Comments
Bevan commented on 2022-03-14 20:04 (UTC)
@shmilee: I like that idea. Implemented in 5.5-2 using JABREF_OPTIONS as variable name.
Note that you can then also put that environment variable into your .bashrc, .pam_environment or something similar to be automatically applied.
shmilee commented on 2022-03-12 13:51 (UTC)
How about add an extra JavaOptions variable in launch script
/usr/bin/jabref
like this?So we can add the
-Djdk.gtk.version=2
flag or-Dglass.gtk.uiScale=144dpi
flag by cmdline, no need to edit/usr/bin/jabref
after upgrade.matteodelabre commented on 2020-11-17 14:25 (UTC)
Using JabRef with i3wm, I’m running into the issue described at https://github.com/JabRef/jabref/issues/5867 in which clicking the menu bar sometimes opens then immediately closes the associated menu, rendering it unusable.
I was able to fix this issue by adding the
-Djdk.gtk.version=2
flag after line 9 in https://aur.archlinux.org/cgit/aur.git/tree/jabref.sh?h=jabref (as suggested in the related bug report https://bugs.openjdk.java.net/browse/JDK-8251240). This change also removes the “XSetErrorHandler() called with a GDK error trap pushed. Don't do that.” warning mentioned by ruiin in a previous comment.So far, I have not encountered any adverse side-effect from this workaround.