2001 JI Open Discussion Posted August 15, 2006 Share Posted August 15, 2006 By: Kartick Suriamoorthy - karticks AWT Toolkit problem 2002-08-21 09:45Hi, I am having this AWT toolkit problem ... can anybody tell me what is the problem ... java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at java.awt.Toolkit$2.run(Toolkit.java:512) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:503) at dori.jasper.engine.util.JRImageLoader.loadImage(JRImageLoader.java:260) at dori.jasper.engine.print.JRPrinterPDF.printImage(JRPrinterPDF.java:443) ... Thanks, Kartick By: Mike Warne - mwarne RE: AWT Toolkit problem 2002-08-30 10:52I'm not sure if your problem is like mine, but I had a problem with the awt toolkit. I have a server application. The server does not have X-Windows installed. This causes problems with awt, jasper needs awt.. However jdk1.4 allows you to pass a parameter to java -Djava.awt.headless=true, New awt code in 1.4 allows for servers without graphics. This solved my problem. Mike. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now