Java on Debian: Probable fatal error: No fonts found
问题 I want to run Tomcat on Debian 5 Minimal. So I don't need a gui for my OS, it's just a pure Tomcat-Server. Which packages do I need for my JVM to use Fonts in my applications? Im drawing texts in Graphics2D and am creating PDF-Files in my Java-Project. 回答1: Graphics2D and anything in the java.awt.* or java.swing.* packages require a GUI to do its drawing. This is a problem on most headless servers. You have two options, and try them in this order: Use the system property "java.awt.headless"