Docker Community Forums

Share and learn in the Docker community.

Docker and java GUI aplication on Fedora 24


(Messner) #1

I want to start a java GUI application inside a docker container on Fedora 24.

I start the container with:

docker run -it --rm --name dockerapp -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix dockerapp

When I want to start it I get:

java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11.XToolkit

Any ideas ?