Jump to content
We've recently updated our Privacy Statement, available here ×

AWT Toolkit problem


Recommended Posts

By: Kartick Suriamoorthy - karticks

AWT Toolkit problem

2002-08-21 09:45

Hi,

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:52

I'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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...