Skip to content

No-GUI mode (--nogui) should not try to use DISPLAY #3754

@auge

Description

@auge

JabRef version 4.1 on RedHat 7 using JRE 1.8.0-162

Steps to reproduce:

  1. use a headless (RH) Linux system that provides no DISPLAY
  2. run only command line feature:
  3. java -jar JabRef-4.1.jar -n --help
JabRef does not run when invoked with the --nogui option and no DISPLAY is available.
Exception in thread "main" java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767)
Caused by: java.lang.UnsupportedOperationException: Unable to open DISPLAY
      at com.sun.glass.ui.gtk.GtkApplication.<init>(GtkApplication.java:68)
      at com.sun.glass.ui.gtk.GtkPlatformFactory.createApplication(GtkPlatformFactory.java:41)
      at com.sun.glass.ui.Application.run(Application.java:146)
      at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:257)
      at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:211)
      at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:675)
      at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:337)
      at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)
      ... 5 more

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions