Problem
The following exception was encountered when running a java program on Fedora:
java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
Assumptions: you know what an xserver is.
Solution
Basically, the java program is trying to access the xserver, and can't.
If it should be accessing the xserver, make sure the xserver is started/running:
See also:
Fedora > install Xvfb as a service
The following exception was encountered when running a java program on Fedora:
java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
Assumptions: you know what an xserver is.
Solution
Basically, the java program is trying to access the xserver, and can't.
If it should be accessing the xserver, make sure the xserver is started/running:
- e.g.
ps -ef | grep Xvfb
unset DISPLAY
See also:
Fedora > install Xvfb as a service