File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Swing with Servlets? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Swing with Servlets?" Watch "Swing with Servlets?" New topic

Swing with Servlets?

Mamta Murthy

Joined: Dec 11, 2000
Posts: 12
Hi All,
I want to call a Swing applet from a Servlet. But it is giving a ClassNotFoundError for javax.swing.JApplet. I did check the classpath a number of times but there doesn't seem to be any problem with it. Also the Swing applet works fine when invoked independently through the browser. It's only when I try yo call it thru the servlet that I get this problem.
Can anybody help please?
Mamta M
Mirko Froehlich
Ranch Hand

Joined: Aug 21, 2000
Posts: 114
Why exactly are you trying to call an applet from a servlet? As long as you have the right version of Java (i.e. Java 2) on your server, you should be able to instantiate a Swing applet, but I really don't understand why you would want to do this.
I agree. Here's the link:
subject: Swing with Servlets?
It's not a secret anymore!