Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Headless Exception in Linux

 
Luke Shannon
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi;

I am resizing an image using some classes from the AWT. On this line:



I get a HeadlessException in Linux, works fine in Windows.

How can I work around this?

Below is the entire code:



Thanks,

Luke
 
Geoffrey Falk
Ranch Hand
Posts: 171
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at PJA Toolkit. This allows you to use AWT classes in headless mode.

We use it for font metric calculations in a server-side application.

Geoffrey
 
Luke Shannon
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic