Ask Your Question

Running a Processing application fails because of "no display"

asked 2017-02-09 19:07:34 -0500

g0p3t0 gravatar image

updated 2017-02-11 08:29:51 -0500

So I'm trying to run an application written in Processing. The weird thing is that the first time I tried it it worked, but then I rebuilt the kernel, updated to F25, then figured I made a mess with the kernel and reinstalled cleanly to F24 and updated cleanly to F25. Now everything is fine, but this issue came up. When I try to start the program I get this:

"Cannot run sketch without a display. Read this for possible solutions:

Which is weird because I obviously have a display. xrandr gives me this:

Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192 XWAYLAND0 connected 1360x768+0+0 340mm x 190mm 1360x768 59.80*+

What could be the issue? I have searched online but didn't really find anything - it's all info about how to actually run it without a display, not about this bug. I think I may have done something wrong with my configuration but not sure what/where to look at.

Please assist. Thank you!!


Here is the executable:


APPDIR=$(readlink -f "$0")
APPDIR=$(dirname "$APPDIR")
java -Djna.nosys=true -Djava.library.path="$APPDIR:$APPDIR/lib" -cp "$APPDIR:$APPDIR/lib/LSLLink.jar:$APPDIR/lib/OpenBCI_GUI.jar:$APPDIR/lib/core.jar:$APPDIR/lib/jogl-all.jar:$APPDIR/lib/gluegen-rt.jar:$APPDIR/lib/jogl-all-natives-linux-amd64.jar:$APPDIR/lib/gluegen-rt-natives-linux-amd64.jar:$APPDIR/lib/jl1.0.1.jar:$APPDIR/lib/jsminim.jar:$APPDIR/lib/minim.jar:$APPDIR/lib/mp3spi1.9.5.jar:$APPDIR/lib/tritonus_aos.jar:$APPDIR/lib/tritonus_share.jar:$APPDIR/lib/jssc.jar:$APPDIR/lib/serial.jar:$APPDIR/lib/oscP5.jar:$APPDIR/lib/udp.jar:$APPDIR/lib/net.jar:$APPDIR/lib/grafica.jar:$APPDIR/lib/GifAnimation.jar:$APPDIR/lib/controlP5.jar" OpenBCI_GUI "$@"
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-02-10 17:46:06 -0500

ssieb gravatar image

updated 2017-02-15 14:47:24 -0500

You don't give any details on how you're trying to run it, but I'll guess that you're trying to run it as root. Wayland does not support that. You either have to change to the Xorg session using the little gear icon at login or don't run the application as root.

The other possibility is that you only have the headless version of Java installed. If rpm -qa | grep openjdk only shows you the headless package, then do dnf install java.

edit flag offensive delete link more


Hi Samuel, thanks for your answer! I am trying to run it both as root and as non-root, but neither works. I also now tried the Gnome Xorg and Gnome Classic but neither worked ... If it would help, I have posted the executable in the OP.

g0p3t0 gravatar imageg0p3t0 ( 2017-02-11 08:29:05 -0500 )edit

I've updated the answer. By default, only the headless Java package is installed, so you might need to install the graphical part.

ssieb gravatar imagessieb ( 2017-02-15 14:49:00 -0500 )edit

Question Tools


Asked: 2017-02-09 19:07:34 -0500

Seen: 285 times

Last updated: Feb 15 '17