开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜