cantene
Mar 15th, 2001, 08:30 AM
I face a strange problem in running my Calculator applet. Its GUI is written
in Swing, JDK 2 1.3 (i.e. class BinaryCalculator extends JApplet ...). It can
run
using appletviewer and my home Netscape 6. But can't run in IE and school
Netscape
(I think is 4.x). I have tried updating my IE to 5.5 but still can't run. The
error message in the IE status bar is:
load: Class BinaryCalculator not found
I have also tested the Hello World Swing Applet. The same fate.
My HTML code is just simple as follows:
<HTML>
<HEAD>
<TITLE>Binary Calculator</TITLE>
</HEAD>
<BODY>
<aPPLET CODE="BinaryCalculator.class" WIDTH=299
HEIGHT=329></APPLET>
</BODY>
</HTML>
Or
<HTML>
<HEAD>
<TITLE>Binary Calculator</TITLE>
</HEAD>
<BODY>
<aPPLET CODE="BinaryCalculator" WIDTH=299
HEIGHT=329></APPLET>
</BODY>
</HTML>
and the HTML file and the class file are put in the same folder.
Do you know what has happened and how can I solve the problem? Is it I need to
embed the applet as an object using the <OBJECT> tag in the HTML for
running Swing
applet properly in Microsoft world. I would be most grateful if you have time to
reply. Thanks a lot.
in Swing, JDK 2 1.3 (i.e. class BinaryCalculator extends JApplet ...). It can
run
using appletviewer and my home Netscape 6. But can't run in IE and school
Netscape
(I think is 4.x). I have tried updating my IE to 5.5 but still can't run. The
error message in the IE status bar is:
load: Class BinaryCalculator not found
I have also tested the Hello World Swing Applet. The same fate.
My HTML code is just simple as follows:
<HTML>
<HEAD>
<TITLE>Binary Calculator</TITLE>
</HEAD>
<BODY>
<aPPLET CODE="BinaryCalculator.class" WIDTH=299
HEIGHT=329></APPLET>
</BODY>
</HTML>
Or
<HTML>
<HEAD>
<TITLE>Binary Calculator</TITLE>
</HEAD>
<BODY>
<aPPLET CODE="BinaryCalculator" WIDTH=299
HEIGHT=329></APPLET>
</BODY>
</HTML>
and the HTML file and the class file are put in the same folder.
Do you know what has happened and how can I solve the problem? Is it I need to
embed the applet as an object using the <OBJECT> tag in the HTML for
running Swing
applet properly in Microsoft world. I would be most grateful if you have time to
reply. Thanks a lot.