• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Problem in running swing applet in IE ...  RSS feed

 
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
 
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.
 
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
 
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
 
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???
 
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!