Make java ignore calls to X11
Is there any way I could make java ignore any calls in code to the X11 system? I'm running an application on a serv开发者_JAVA百科er machine, which has no window manager. When I run this app I get the java.awt.HeadlessException. I have already tried to set -Djava.awt.headless=true / System.setProperty("java.awt.headless", true). No luck.
Do I really have to manually remove all code lines where the interaction with graphical system is made or there is a more elegant way? Thx.
Use java in headless mode Java headless mode
精彩评论