The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
August 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Applet runs fine in appletviewer but not browser

Posted by Miguel Laborde on August 25, 2001 at 8:07 PM

Hello all,
I have a problem with respect to a small chat client that I've written in applet form. Everything runs perfectly when I try running it through the appletviewer, however I get an error message saying 'Example can't be instantiated' or along those lines when I try running it in the browser. I've narrowed it down to the point where I establish a socket connection to the host. If I comment this line out then the applet loads fine, however as soon as I remove the commented out section it no longer functions. This isn't a security issue as it is connecting to the same system that the applet is being downloaded from. I suppose my question is this - is there a way to step through the applet as its being loaded in the browser? I would write debug logging... except applets can't write to the HD =) Anyone other alternatives?

Thank you,
Miguel



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us