No X11 DISPLAY variable was set error running java app

Asked by Yuri Weinstein

I have a sh script that runs java app
It runs fine, but when added to zeit, it generates errors:

Jan 28, 2021 8:52:01 AM ke e
SEVERE: java.io.IOException: Cannot run program "gnome-open": error=2, No such file or directory
Jan 28, 2021 8:52:01 AM ke e
SEVERE: java.io.IOException: Cannot run program "kfmclient": error=2, No such file or directory

No X11 DISPLAY variable was set,
but this program performed an operation which requires it.
java.awt.HeadlessException:
No X11 DISPLAY variable was set,
but this program performed an operation which requires it.
        at java.desktop/java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:165)
        at java.desktop/java.awt.Label.<init>(Label.java:149)
        at kl.<init>(Unknown Source)
        at kl.a(Unknown Source)
        at mA.c(Unknown Source)
        at crossftp.common.Commander.main(Unknown Source)

Any clues how to resolve this ?

Thx

Question information

Language:
English Edit question
Status:
Answered
For:
Zeit Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Blaze (blaze) said :
#2

You may need to add a variable in the Ctrl+E tab, just like that

Variable: DISPLAY
Value: :0

Value may be also ":1", in case if you are running Wayland session

Revision history for this message
Blaze (blaze) said :
#3

Answer is given

Can you help with this problem?

Provide an answer of your own, or ask Yuri Weinstein for more information if necessary.

To post a message you must log in.