I’m trying building JabRef 5.5 on NixOS. I got this error when I open preference.
2022-02-27 21:26:04 [JavaFX Application Thread] org.jabref.gui.preferences.preview.PreviewTabViewModel.lambda$setValues$6()
ERROR: Something went wrong while adding the discovered CitationStyles to the list.: java.nio.file.FileSystemNotFoundException
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.getFileSystem(ZipFileSystemProvider.java:156)
at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.getPath(ZipFileSystemProvider.java:142)
at java.base/java.nio.file.Path.of(Path.java:208)
at org.jabref@5.5/org.jabref.logic.citationstyle.CitationStyle.discoverCitationStyles(CitationStyle.java:142)
at org.jabref@5.5/org.jabref.gui.util.BackgroundTask$1.call(BackgroundTask.java:59)
at org.jabref@5.5/org.jabref.gui.util.DefaultTaskExecutor$1.call(DefaultTaskExecutor.java:162)
at javafx.graphics/javafx.concurrent.Task$TaskCallable.call(Task.java:1426)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
it seem you are missing the citation styles. They are only copied over from buildres/csl to src/main/resources during the building of the jpackage installers.
This could be one reason.
Thanks! The JabRef on NixOS is currently a patched version of the portable tarball. 5.3 works but 5.5 crashes. See nixpkgs/default.nix at nixos-21.11 · NixOS/nixpkgs · GitHub, lots of patches are required. I thought it’s much easier to build it from source and it does work well except this problem. The portable version won’t work with patches. I checked the jar and the style files are there. Maybe it’s something related to java on NixOS.