• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in running swing applet in IE ...

 
Lakshmi Geetha
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?

thanks
--lg
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Abhijit Kulkarni
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Christophe Monnet
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should use the latest plugin: 1.3.1_01a http://java.sun.com/getjava/installer.html
There is no need to embed you applet.
The plugin recognize the APPLET tag in IE and NS.
Life is easy again
 
Dave Donohoe
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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???
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think this topic would get more replies in the Applets forum...

-Nate
 
Tim Holloway
Saloon Keeper
Posts: 18359
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check the Windows control panel for your current Java Plug-in settings.
Microsoft isn't yanking Java in the NEXT release -- it has ALREADY done so. IE 5.5 with the latest service packs and IE6 all releases only support Java if someone's installed a plug-in or inherited an JVM (like from upgrading an earlier IE release).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic