java.awt.HeadlessException thrown from HeadlessGraphicsEnvironment.getDefaultScreenDevice

后端 未结 2 890
盖世英雄少女心
盖世英雄少女心 2021-01-20 05:01

I need to do some image processing on a java server (Debian with java version \"1.6.0_12\"), and I am receiving java.awt.HeadlessException from my code:

java         


        
2条回答
  •  星月不相逢
    2021-01-20 05:47

    When headless you don't have a screen device. The documentation is clear:

    Throws: HeadlessException - if isHeadless() returns true

提交回复
热议问题