hi, i have a class deriving from JApplet. i tried to run it in IE .i did not install any plugins , but i gave rt.jar(which contains the class file for JApplet)in the archive tag in my html. i get the following exception in java console : > warning: running 1.2 version of SwingUtilities java.lang.InstantiationException: MyApp at com/ms/applet/BrowserAppletFrame.newInstance at com/ms/applet/AppletPanel.processSentEvent at com/ms/applet/AppletPanel.processSentEvent at com/ms/applet/AppletPanel.run at java/lang/Thread.run > why doesn't this work ?
I don't know of any way to force the browser's VM to load the newer JFC classes. As far as I know, you have to have the plug-in. With IE, it's probably not a bad idea to get used to this, since the next release will not have any support for java at all! I guess that's what happens when Microsoft tries to screw over a company that isn't completely dependant on them for survival.
This what I read once! There is nothing wrong in your Applet. I think you are using <APPLET ..> </APPLET> tags to display the applet in your HTML page. This tag is supported only upto Java V1.1 . Since you are using Java v1.3 swing you need to use Object tag for IE and <Embed> tag for netscape. Here is the HTML file for your applet and it runs fine. YOu also need to download java plug-in to run this applet. To convert the APPLET tag to OBJECT and EMBED tag you can download HTML Converter from java.sun.com. ------------------ abhijit from pune. Ability alone is not enough for success,it must be sparked by ambition and sustained with determination
<b><i>Abhijit</i></b> <br />---------------------------------<br />Give me my share of smile!
Hi all, I am having a similar problem. I have a SWING Applet & I have downloaded & installed the Java Plug In Version 1.3.1_01 I am using IE 5.0 & have tried using both JDK1.3 & JDK1.3.1. When I try to view my applet, I get a class not found exception. This also happens when I try to run the Swing Applet demos in the JDK Folder. Any ideas???