• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to run applet thru Internet Explorer

 
Santosh Tripathi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,
Since applet run within web page and is embeded with html file.
how can we run the html file which include applet as well as other things in <body> tag thru Internet Explorer, without using appletviewer
 
Tim Holloway
Saloon Keeper
Posts: 18359
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"santosh8"
Welcome to the JavaRanch! We don't have many rules here, but we do have a Naming Policy in order to maintain a more professional atmosphere. You can find out more about it here. Please adjust your display name accordingly. Thanks!
AppletViewer is a standalone program and isn't used in web pages. In order for an applet to run in Internet Explorer a Java plug-in has to be installed. Older systems have this, but newer versions of Windows don't come with one. So if you can't get the browser to display and run the applet, this is probably why.
Other problems you'll probably see are that if you've written your applet to use Swing, the JVMs for IE and Netscape are too old to run the applet. To run Swing-based applets, you'd need to install a Java plug-in from Sun such as .This one.
Finally, the other thing that burns a lot of people is that the AppletViewer allows applets to do things that the sandbox security of a web browser doesn't. This includes reading and writing files, opening network connections to servers other than the one that the applet came from and printing.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic