Sitemap

Amicuk Programming Answers

Applet, Netscape and Opera but not IE, encore

2015-10-11   Views:0

Advertisement

I've got the following trivial applet that runs under Netscape and Opera, but not under IE. It's also at www.MartinRinehart.com as the ColorChooser choice. There's a half dozen Dukes from previous posts, and my sincere gratitude for anyone who can te

I've got the following trivial applet that runs under Netscape and Opera, but not under IE. It's also at www.MartinRinehart.com as the ColorChooser choice. There's a half dozen Dukes from previous posts, and my sincere gratitude for anyone who can tell me what I need to do so IE doesn't say "Load: class CCApplet not found."
import java.awt.BorderLayout;
import java.awt.Button;
import java.awt.Label;
public class CCApplet extends java.applet.Applet {
     public void start() {
          Label l = new Label( "CCApplet!" );
          setLayout( new BorderLayout() );
          add( l, BorderLayout.NORTH );
          add( new Button("South"), BorderLayout.SOUTH );
} // end of class CCAppletThe .class is in the same directory as the .html. Putting it in a .jar doesn't seem to matter. My IE runs other applets from the web, but not the ones I write. Thanks in advance.

The replay answer
Advertisement
The applet runs for me in IE with 1.5.0_02, XP Pro (current updates), with class and html files in same directory.
Check that everything in IE's Java Plug-in is valid and correct. Check IE's Internet Options.
What JVM version are you wanting the applet to be able to run with? What does this statement mean? "...most visitors can use without knowing what a JRE is."
To get greatest compatibility, use code that conforms to the 1.1 API, compile to that target version, possibly use the old 1.1 libraries, and then test each jvm. (BTW - Swing has limited compatibility - it isn't MS compatible, and wasn't [Sun] standard until jvm version 1.2.)

Go to See the other 15 answers

Applet, Netscape and Opera but not IE, encore

Category:DefaultRelease time:2015-10-11Views:130

I've got the following trivial applet that runs under Netscape and Opera, but not under IE. It's also at www.MartinRinehart.com as the ColorChooser choice. There's a half dozen Dukes from previous posts, and my sincere gratitude for anyone who can te[More]

IE, Netscape and Opera problems my .css

Category:DefaultRelease time:-0001-11-30Views:130

Hello! I have just built a site for a designer in dreamweaver, and it looks great in FF and Safari. IE 5,6,7 and Opera push the <h1> content down and in Netscape the container div doesn't expand down to contain the content. I have browser cam screen[More]

ClassNotFoundException Applet in Opera Mac OS X

Category:DefaultRelease time:-0001-11-30Views:130

I'd like to display a simple Hello World applet in the Opera v6.03 browser on Mac OS X 10.2.8. I continue to see this class not found exception, though I am able to run this exact applet, with the same html in several other browsers on the Mac. Is an[More]

Applet not viewable in browser

Category:DefaultRelease time:2015-10-11Views:130

Hi applet not viewable in browser any website that uses java code seems not to run on my browser though it runs normally well on my friends computer. The browser shows a screen area in grey colour with an error message like "Exception: java.lang.Clas[More]

Can't run an applet with Internet Explorer for Windows

Category:DefaultRelease time:2015-10-11Views:130

I'm not sure this is the right news group, if not please direct me to the correct one. I have an applet at http://209.55.115.36/webfit/Instructions/instructio_list.php?section_id=1&instructionsPage=2 It works in various browser except internet explor[More]

Class not found. Or: THERE'S NO SUCH THING AS APPLETS

Category:DefaultRelease time:-0001-11-30Views:130

Okay, the problem I�m having seems to be somewhat widespread judging from the forum achieves, but I wasn�t able to find any answers that worked for me. So forgive me if I�m treading old ground, but asking explicitly is my one last attempt to learn wh[More]

Where are Applets stored in WinNT/IE5.5

Category:DefaultRelease time:-0001-11-30Views:130

Hi Folks, A client is receiving an error saying (not exact) Java.Lang error cannot find ...class In Winnt\Downloaded Program Files, Java 1.3.1 is saying it is damaged. I have reinstalled IE 5.5 but the error remains. How can I reinstall Java, and/or[More]

Probllem with applets connecting to servlets

Category:DefaultRelease time:-0001-11-30Views:130

This piece of code has an applet making a connection to a server. This works using the older version of an appletviewer but not on the jdk1.2 appletviewer and also on netscape nor opera browsers. It gives me a security... error. import java.awt.*; im[More]

Trying to Imitate the html POST  method with an applet

Category:DefaultRelease time:2015-10-11Views:130

I am trying to imitate the POST method with an applet, so that I can eventually send sound from a microphone to a PHP script which will store it in a file on a server. I am starting out by trying to post a simple line of text by making the PHP script[More]

Linux, Netscape 7.01 and java plug-in how to install?

Category:DefaultRelease time:2015-10-11Views:130

I have J2SE v 1.4.1_01 SDK installed in /usr/java/ directory. Some days ago I installed Netscape 7.0.1 on my RedHat 8.0 Linux. Now if I try to run my simple html page which calls simple java applet, I get message to install proper plug-in. "OK"[More]

Is there any way for applets to write to files?

Category:DefaultRelease time:-0001-11-30Views:130

i heard that java applets restricts file operations. is that true? im not looking in particular for code samples, but just the basics.You'll be interested to see this thread: http://forum.java.sun.com/thread.jsp?forum=54&thread=271166Read other 2 ans[More]

Hot
Hello developers, Ive been looking a couple hours for a solution but cant find it. In my app users enter text into a textbox like im doing now. When i want to display the text it has lost the carriage returns. Im using tomcat and mysql here. A soluti [More]
I have a 8 node cluster with Hyper-V, which will be 10 nodes when it's finally done. Recently I've been try to add nodes and though that went fine, after about a week I could not open the Failover Cluster Manager anymore. After some checking I found [More]
hello, as i'm studying cocoa i've created a test app and i'm looking for some advice/direction when it comes to design. this is what i've done so far: 1. placed a custom view on my main window linked to my custom subclass "dropview" of nsview 2. [More]
My hard drive had to be replaced last week. Although my music was backed up by Norton 360, my Outlook contacts and calendar were not backed up. How can I transfer my data from my Ipod to my new hard drive? I am running Windowa XP, if that matters. Wi [More]
Hi All, I have executed this query on my db for using flash back features: select * from flashback_transaction_query where table_owner='USERNAME' However, it throws the error after being executed for 5 min: ORA-04030: out of process memory when tryin [More]
I have this strange issue. I will try to explain. I have three columns in my report - Delivered Qty, Opened Quantity, and the third one is computed that is (Delivered Qty - Opened Qty). The data is displayed in a table by quarter. So basically I have [More]
read and write MT940 message ? Edited by: lover91 on Dec 17, 2008 5:51 AMThe Three Best Alternatives for Security Questions and Rescue Mail      1.  Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.      2.  Call Apple Supp [More]
Hi, I have download the j2se and j2ee versions for petstore and created the required env variables. When the start the Cloudscape, it is fine. But when I executed J2EE - Verbose from the cmd prompt, I get the following error and the execution stops. [More]
Hi, I'm developing a application for a windows ce v.2.11, and I've installed in my PDA (MIPS) Personal Java. The samples of Personal Java run perfectly. I've create a simple new class (Hello.class) with Sun One Studio, then I copy this file (Hello.cl [More]
I am using PSE 8 on a 64 bit windows 7 platform.  Installed without a problem.  Worked fine for a while.  The Editor works, but the organizer will not open from start choice or from inside the Editor.  This was a new catalog, not a conversion.  I was [More]