This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / Why my web browsers(both IE5.5 and Netscape4.76) can't run some applets? Not all of the applets, just some. Even if I load the demo html files directly from c:/ jdk1.2.2/demo/applets/animatorNone of the four html files can load the applet. They just leave a gray blank area in the pape. But those applets run perfectly with appletviewer.
(All other applets in the demo fold can be loaded normally.)
-henryliu(Shaolin);
2001-3-7
{209}
(#31079@0)
-
Your browser failed to load Applets probably because ...Your applect used javaxswing.* package. Both IE and NS cannot support javax.swing.
To shoot the problem, check Java console of your browser. You will see the exception message. For IE, go to View|Java Consolle.
Good luck.
-jabber(jabber);
2001-3-7
{231}
(#31118@0)
-
Thank you! I tried. But it didn't work. Any more hints?The Animator.class in jdk1.2.2/demo/applets/Animator doesn't have a import line of "Javax.swing.*;".
All other applets in demo folder can be loaded by my web browsers. I don't know why this one (actually 4) can't.
There are also many other applets can't be loaded by my web browsers.
-henryliu(Shaolin);
2001-3-7
{292}
(#31147@0)
-
I tested these applets for you...They work in my IE because my IE can load JDK 1.2 classes from the local machine.
That Animator contains a JDK 1.2 class: java.util.ArrayList. This might be the reason you fail. Be sure go to View|Java Console to check Stack Trace of the exception. Be sure. If you cann resolve the problem yourself, you may post the Exception information in the console.
The browser has its own console. It is not MS-DOS. Be sure to check IO console of the browser!
-jabber(jabber);
2001-3-7
{461}
(#31171@0)
-
Thanks a million! I don't know how to express my appreciation.
Yeah, there is an Exception thrown...
-henryliu(Shaolin);
2001-3-7
{1286}
(#31194@0)
-
Java Began with applets, but it became hot because of its enterprize application.New, people try to avoid use Applets. If we do need use them, we should
judiciously choose those library classes in JDK 1.1. All the browser do not support JDK 1.2. The problem can be solved by installing Java-Plugin on the client-side. However, do you think the client will be happy?
-jabber(jabber);
2001-3-8
{291}
(#31282@0)