title: using java.awt library in linux X11 issue
body: <p>I am trying to create a video by combining a set of images available online using Xuggle. I implemented it as a service using JSP and Java. I'm using the tomcat server. When I deploy it in my local server which runs in windows, it works fine. But when i deploy  it to the linux server im getting the following error.</p>
  
  <pre><code>org.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11.XToolkit
      org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:500)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:410)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  </code></pre>
  
  <p>I guess it's the headless problem which occurs in environments without a display.
  Can someone tell me how to solve this problem ?
  I found online that <code>PJA toolkit</code> can solve this problem. but how do i use this in linux? if anyone has followed this approach can you please give me step by step instructions on how to use this in linux. </p>