• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Problem in running swing applet in IE ...

 
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 Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think this topic would get more replies in the Applets forum...

-Nate
 
Bartender
Posts: 21000
128
Android Eclipse IDE Tomcat Server Redhat Java 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).
 
Where all the women are strong, all the men are good looking and all the tiny ads are above average:
Enterprise-grade Excel API for Java
https://products.aspose.com/cells/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!