File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes sun/ awt/ X11GraphicsEnvironment Class Not Found? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "sun/ awt/ X11GraphicsEnvironment Class Not Found?" Watch "sun/ awt/ X11GraphicsEnvironment Class Not Found?" New topic
Author

sun/ awt/ X11GraphicsEnvironment Class Not Found?

Caroline Iux
Ranch Hand

Joined: May 14, 2001
Posts: 103
I am running my application on WebSphere on a Linux box.
I have X Windows System and xvfb installed on the server and it seems like it's connecting to the X windows server OK.
The error msg I am getting is:
-------------------------------------------------
Servlet Error: sun/awt/X11GraphicsEnvironment: java.lang.NoClassDefFoundError: sun/awt/X11GraphicsEnvironment
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:134)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:64)
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1025)
at java.awt.image.BufferedImage.getGraphics(BufferedImage.java:1015)
at org.faceless.graph.output.ImageOutput.<init>(Unknown Source)
at org.faceless.graph.output.PNGOutput.<init>(Unknown Source)
at org.faceless.graph.output.PNGOutput.<init>(Unknown Source)
at com.fmo.supplynet.util.GraphingUtils.createLineGraph(GraphingUtils.java)
at com.fmo.supplynet.action.ViewAMScorecardReportAction.perform(ViewAMScorecardReportAction.java)
at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1786)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1585)
at com.fmo.supplynet.action.SNActionServlet.doPost(SNActionServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167)
at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110)
at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:523)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:282)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:112)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:91)
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:184)
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:106)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:125)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:315)
at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:323)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)
---------------------------------------------
Any help is appreciated!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: sun/ awt/ X11GraphicsEnvironment Class Not Found?