Hi @Bevan: Thank you for your feedback.
I don't know what is going on. It seems I have the latest version of jdk-openjdk but JabRef still complains about not finding a suitable JVM:
magno@midget ~> sudo pacman -S jdk-openjdk
warning: jdk-openjdk-14.0.1.u7-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (1) jdk-openjdk-14.0.1.u7-1
Total Installed Size: 86.99 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring [#########################################################################################################] 100%
(1/1) checking package integrity [#########################################################################################################] 100%
(1/1) loading package files [#########################################################################################################] 100%
(1/1) checking for file conflicts [#########################################################################################################] 100%
(1/1) checking available disk space [#########################################################################################################] 100%
:: Processing package changes...
(1/1) reinstalling jdk-openjdk [#########################################################################################################] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating icon theme caches...
(3/3) Updating the desktop file MIME type cache...
magno@midget ~> JabRef
No suitable JVM found.
Available: java-8-openjdk
Default: java-8-openjdk
Min. required: 13
Max. required: 20
Package required:
Candidates:
Features required:
magno@midget ~> archlinux-java status
Available Java environments:
java-8-openjdk (default)
Pinned Comments
Bevan commented on 2024-03-28 17:57 (UTC)
Everyone who struggles to update right now: Please install the jdk21-openjdk package. It provides java-environment=21.
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.