Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.lang.NoClassDefFoundError: sun/awt/windows/WToolkit

843807Jul 31 2001 — edited Jan 29 2002
I've been using the same upload servlet (based on the O'Reilly) for the past year. I noticed today that it throws an exception when trying to resize the image (after upload). Was wondering if anyone had any ideas about why this might be popping up now.

I am running Windows 2000 Pro and recently installed Service Pack 2, the Critical Updates Patch, and the Patch for the Code Red Worm.

The exception:

java.lang.NoClassDefFoundError: sun/awt/windows/WToolkit
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at java.awt.Toolkit$2.run(Toolkit.java:498)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:489)
at javax.swing.ImageIcon.(ImageIcon.java:77)
at javax.swing.ImageIcon.(ImageIcon.java:103)
at MediaUpload.doResize(MediaUpload.java:185)
at MediaUpload.doPost(MediaUpload.java:83)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:772)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at com.unify.ewave.servletexec.ServletExec.CallServletService(ServletExec.java)
at com.unify.ewave.servletexec.ServletExec.processServletRequest(ServletExec.java)
at com.unify.ewave.servletexec.ServletExec.ProcessRequest(ServletExec.java)
at com.unify.ewave.servletexec.ServletExec.ProcessRequest(ServletExec.java)

Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 26 2002
Added on Jul 31 2001
1 comment
276 views