File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Applet Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Applet Problem" Watch "Applet Problem" New topic

Applet Problem

Patrick Mugabe
Ranch Hand

Joined: Jan 08, 2002
Posts: 132
I can not view my applets from Internet explorer, I can only use the appletviewer to see the applet. What is it that I can do in order to view my applets in Windows Internet explorer.
Manish Hatwalne
Ranch Hand

Joined: Sep 22, 2001
Posts: 2591

Have you emebeded your applet in an HTML page?
put your applet in an HTML page using tag applet.
your HTML will be
<applet code="AppletClassName" width="xxx" height="yyy">
include params if any here.
and open that HTML file in the Internet Explorer.
- Manish
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
Microsoft declined to include a Java JVM in the most recent version of Internet Explorer. Obviously as part of their long term campaign against Sun and Java.
Sun has created a plug-in for MSIE that will run applets. You may already have this as part of your SDK, or you can download it from the site. If you are running under Windows XP, you will need the latest one from the site.
Eric Peterson
Ranch Hand

Joined: Jan 08, 2002
Posts: 31
Like the previous reply says if you are using IE6 that could be your problem. However, from looking at your next post the problem also lies in the fact that your are using Swing components in your applet. The JVM in previous versions of IE and most versions of Netscape withe perhaps the exception of 6.0 or higher only supports Java 1.1 which limits you to AWT in your applets. The only solution to this is to download a plugin from at Java Plugin.
[ January 09, 2002: Message edited by: Eric Peterson ]

Eric Peterson
I agree. Here's the link:
subject: Applet Problem
jQuery in Action, 3rd edition