Java headless
Posted by gregster on 17 May 2013 in Servers
The ISE was getting the error
java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
when running xwiki.
It turns out that the existence of quotes in JAVA_OPTS directives causes the option to be ignored. So, for future reference, use -Djava.awt.headless=true
instead of -Djava.awt.headless="true"
when launching tomcat on a headless server.