If you use the <APPLET> tag it doesn't use the plug-in, it uses the
browser's default JVM, which will not have access to Swing classes. 

To use the plug-in you have to use the <OBJECT> tag for IE or the
<EMBED> tag for Netscape instead of <APPLET>. Pretty silly to have two
different browser-dependent tags, huh? There are examples of how to use
these tags, and Javascript examples for when you don't know the type of
browser that will be used to view the page here:

http://java.sun.com/products/plugin/1.3/docs/tags.html#Any

-Jules


vinod tipparaju wrote:
> 
> Hi
>  I have a 686 and am running suse6.4, am running a small web server on
> it. I have a jar file in it that has a few html files and a few applets.
> (applets in jdk1.2 compiled with jdk1.2.2)
> When I open a html file in a web browser on a different machine (it is
> a win nt machine and has jdk1.3 plugin)and that html I opened has an
> applet tag in it, browser starts running the applet and then sudeenly
> stops.
> netscape browsers java console showed an error that said
> javax.swing.SwingUtilities class not found.
> IE browsers java console showed an error instantiation exception
> I am using Japplet and JButton in the applet.
> Can somebody tell me why I might be getting these errors.
> Tia
> Vinod
> 
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

-- 
_-_-_-_-_-_-_-_-_-_-_
Jules Agee
[EMAIL PROTECTED]


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to