Almost certainly you need to run in Headless mode. Check out: http://java.sun.com/developer/technicalArticles/J2SE/Desktop/headless/
--Ken On Jul 15, 2011, at 12:25 PM, stephen smith wrote: > > Hello, > > I am printina pdf using PDFBox. It works great on out local dev boxes but > when we move to the server it gives the error: > java.awt.HeadlessException > at sun.print.PSPrinterJob.printDialog(PSPrinterJob.java:401) > at org.pdfbox.pdmodel.PDDocument.print(PDDocument.java:831)... > > Can anyone help with this? > > Thanks >

