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
This is a semi-rhetorical question: I have now resolved this for my own setup, However, there was very little information on this error in the fora, so I thought I would post my experience with getting a Time Capsule (2TB, 3rd edition) to work on OS [More]
Hi, We have a report on a Multiprovider. Multiprovider is based on the DSO. There are some orders which are avialable in the DSO for a plant. The same orders for that plant are not shown on the report. Please advise. Regards JohnTry performing couple [More]
Hello, I have 250 GB External Portable Hard Drive. When i install any software,in installation window it only show macintosh HD..Please tell me how to install software in External HDD.Some developers write software installers that will only install t [More]
Hello, I am running into some problems with my Oracle Spatial data. Maybe somebody has some insight. Here's what is going on: 1) I am able to connect to and view the data in uDig but I cannot edit the data and also the data shows up in the table of c [More]
Hi, I'm a noob with Oracle R12 and my concern is regarding the setup. When I try to open an application using Firefox, all I get is the Java icon with the progress bar circling as if trying to load something. I get no pop-up nor anything in the progr [More]
Hello We have recently installed Microsoft Intune on all of our computers and they all work fine except one, it had updated but not it is caught in a update loop where it restarts the machine after it failed to install updates but once it boots back [More]
I wish to import my photo library to my computer. The place where my photos was has been lost and therefore my itunes library sync will not work. Please tell me how i can move my photo library from my phone to my computer.This is exactly what happene [More]
Hey All,           Safari wont open any pages such as youtube, facebook etc saying that it cannot establish a secure server. This just happened about 3 hours ago just as my mac went to sleep. The only new thing I did was use an HDMI cable to connect [More]
I use CS5 and all of a sudden I am getting a notification that says there is an error with my icons. It's telling me to contact support or reinstall. The problem is I don't know where my disks are to re-install. Any suggestions?doodlebug, Am I just o [More]
When selecting my photos for HDR processing from Bridge, going to tools, Photoshop, Merge to HDR Pro and making my adjustments there, everything seems normal. When I click on "OK" and waiting, the photo comes up in PhotoShop as a completely blac [More]