本文发表在 rolia.net/zh 相约加拿大网上社区枫下论坛
Let me assume you use MIIS. You have a wwwroot. Under this wwwrooo, you have
test.htm file and HelloWorldApp.class.
I assume your Applet class has no package structure. In test.htm, there is a <APPLET>
...</APLLET> tag. Ok, now open your browser and hit http://localhost/test.html.
This is the way to run Applet. I hope you have followed this path.
Now let me assume you don't have MIIS or Microsoft Personal Server. But you have installed JDK on your Windows NT.
If you have set up PATH and CLASSPATH correctly, you can test your Apllet by issuing the following command:
Of course, your test.html and applet class should be live in the same place, just like siblings.
Since you are still in China, I suggest you visit www.bruceeckel.com and browse "Thinking in Java", you will see how to the detailed description. More dedails there.
If your problem persists, I think the simplest way to cure it is to download Java Plug-In and use it to replace Microsoft JVM.
Just a small suggestion. Whenever you want to discuss with the people, you had better describe your problem in detail, tell them what you have done and what weird thigs have happened.
更多精彩文章及讨论，请光临枫下论坛. 网址: rolia.net/zh
This post has been archived. It cannot be replied.