Exception when moving from windows to linux

2020-02-18 Thread Matthias Pfeifer
Hi there, I am using apache poi 4.1.0 and i have some code that should create a Workbook, create a sheet, put some data in it and store it into file system. My code runs fine on my windows box but throws exception when moving to linux (please no jokes about linux box refusing code due to bad smell

Re: Exception when moving from windows to linux

2020-02-18 Thread Andreas Reichel
Dear Matthias, please try to install the X Virtual Frame Buffer (XVFB) and start that in the background, before starting the Java VM. As far as I know, the Java VM needs a Graphic Device for all the AWT based operations, inclduing Fonts. Best regards Andreas On Wed, 2020-02-19 at 08:40 +0100, M

Re: Exception when moving from windows to linux

2020-02-18 Thread Andreas Reichel
Additionally you might need to load the needed Fonts manually, when the server is headless and no FontConfig stuff is used/provided. If you want to provide the Fonts as resources in your class path, something like the snipet below might work: /home/are/Documents/src/SwingUI/src/com/manticore/swin