Package Details: jabref 5.15-2

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: 213
Popularity: 0.093395
First Submitted: 2012-06-07 22:47 (UTC)
Last Updated: 2024-09-23 19:59 (UTC)

Dependencies (4)

Required by (0)

Sources (7)

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?

............
--module-path ${ROOT}/lib \
${JABREF_EXT_Options} \
--patch-module .............

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.

JABREF_EXT_Options='-Dglass.gtk.uiScale=144dpi -Djdk.gtk.version=2' jabref

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.

Latest Comments

« First ‹ Previous 1 .. 4 5 6 7 8 9 10 11 12 13 14 .. 21 Next › Last »

rmagno commented on 2020-07-09 13:00 (UTC)

rmagno@midget ~> pacman -Qs openjdk
local/jdk-openjdk 14.0.1.u7-1
    OpenJDK Java 14 development kit
local/jdk8-openjdk 8.u252-1
    OpenJDK Java 8 development kit
local/jre-openjdk 14.0.1.u7-1
    OpenJDK Java 14 full runtime environment
local/jre-openjdk-headless 14.0.1.u7-1
    OpenJDK Java 14 headless runtime environment
local/jre8-openjdk 8.u252-1
    OpenJDK Java 8 full runtime environment
local/jre8-openjdk-headless 8.u252-1
    OpenJDK Java 8 headless runtime environment
rmagno@midget ~> archlinux-java status
Available Java environments:
  java-8-openjdk (default)

The workaround proposed does not work because seemingly I don't have the java executable in /usr/lib/jvm/java-14-openjdk/bin...

rmagno@midget ~> ls -l /usr/lib/jvm/java-14-openjdk/bin/
total 240
-rwxr-xr-x 1 root root 14272 May 23 19:20 jar*
-rwxr-xr-x 1 root root 14280 May 23 19:20 jarsigner*
-rwxr-xr-x 1 root root 14312 May 23 19:20 javadoc*
-rwxr-xr-x 1 root root 14272 May 23 19:20 jcmd*
-rwxr-xr-x 1 root root 14344 May 23 19:20 jconsole*
-rwxr-xr-x 1 root root 14272 May 23 19:20 jdb*
-rwxr-xr-x 1 root root 14272 May 23 19:20 jhsdb*
-rwxr-xr-x 1 root root 14304 May 23 19:20 jinfo*
-rwxr-xr-x 1 root root 14304 May 23 19:20 jmap*
-rwxr-xr-x 1 root root 14272 May 23 19:20 jps*
-rwxr-xr-x 1 root root 14280 May 23 19:20 jshell*
-rwxr-xr-x 1 root root 14312 May 23 19:20 jstack*
-rwxr-xr-x 1 root root 14272 May 23 19:20 jstat*
-rwxr-xr-x 1 root root 14280 May 23 19:20 jstatd*
-rwxr-xr-x 1 root root 14272 May 23 19:20 rmic*

Bevan commented on 2020-07-09 12:45 (UTC) (edited on 2020-07-09 12:46 (UTC) by Bevan)

Thanks for your feedback. The error message actually comes from a custom launch script I use and not from jabref itself. The problem is obviously that your java 14 installation does not show up in archlinux-java.

To debug this issue, could you please run pacman -Qs openjdk and post the output here?

As a temporary workaround, you can try to edit /usr/bin/JabRef and replace the line

/usr/bin/archlinux-java-run --min 13 -- \

by

/usr/lib/jvm/java-14-openjdk/bin/java \

Does this work for you?

rmagno commented on 2020-07-09 12:29 (UTC) (edited on 2020-07-09 12:31 (UTC) by rmagno)

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)

Bevan commented on 2020-07-09 06:47 (UTC)

@magno: That normally should not happen. It means that only java 8 is installed on your system. However, this package has a dependency on java-runtime>=13. You should be able to fix it by installing the package jdk-openjdk.

The question is, how could you end up in this situation? Did you remove some packages and forced pacman to ignore dependencies?

rmagno commented on 2020-07-09 00:41 (UTC)

I can't run JabRef.

I am getting:

No suitable JVM found.
Available:         java-8-openjdk
Default:           java-8-openjdk
Min. required:     13
Max. required:     20
Package required:  
Candidates:        
Features required: 

quickwater commented on 2020-05-05 19:11 (UTC)

Bevan: I have tried getting the files manually by wget or using a browser. Sometimes it worked, sometimes it gave me 404. However, your idea about firewall made me think that it could be a problem with a Brazilian internet provider. I connected to a VPN, et voilà, everything is working fine. So everything seems to be resolved. Thanks a lot for your help.

Bevan commented on 2020-05-05 18:49 (UTC)

quickwater: Thanks for clarifying. Since the problem is not specific to this package, it's unlikely that we can solve it here. But maybe we can learn something about the issue nevertheless.

In your first post you mentioned https://jcenter.bintray.com/org/openjdk/jmh/jmh-core/1.21/jmh-core-1.21.jar as not downloadable. What happens if you manually try to download that file, e.g., using

curl --output jmh-core-1.21.jar -L https://jcenter.bintray.com/org/openjdk/jmh/jmh-core/1.21/jmh-core-1.21.jar

or

wget https://jcenter.bintray.com/org/openjdk/jmh/jmh-core/1.21/jmh-core-1.21.jar

? Are you maybe behind some kind of firewall? Either because you are using a company network or maybe you are in a state that filters internet access?

quickwater commented on 2020-05-05 18:33 (UTC) (edited on 2020-05-05 18:37 (UTC) by quickwater)

Bevan: no, it wasn't resolved. I deleted the comment because I wanted to try to solve it first, before asking help here. Looks like it is not temporary problem. I am sure it is not in PKGBUILD, since I tried to build jabref from the git repository with the same result.

Bevan commented on 2020-05-05 16:13 (UTC)

quickwater: Wasn't this issue solved five days ago (since you deleted your first comment on that)? I tried building when you posted this first and it worked for me so I assumed it was a temporary hickup.

quickwater commented on 2020-05-05 16:01 (UTC)

Cannot build because gradle cannot get resources such as jmh-core, xstream, javaparser-symbol-solver-core-3.13.5.jar and others. What could be a possible reason? Thanks.