package name: javax
class name: Hello
I wrote the following:<APPLET CODE ="javax.Hello" WIDTH = 400
HEIGHT = 300>
with the following appletviewer error output:
appletviewer index.html
File not found when looking for: javax.Hello
java.lang.NullPointerException
at sun.applet.AppletPanel.createApplet(AppletPanel.java:462)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:398)
at sun.applet.AppletPanel.run(AppletPanel.java:237)
at java.lang.Thread.run(Thread.java)
-- ---------------------------------------------------------------------------- |Omar Butaiban|ce94...@eng.kuniv.edu.kw|P.O Box 7532 salmiya, Kuwait 22086| ----------------------------------------------------------------------------
>How to include a package member applet in the APPLET tag?
>hello
>how to write the code in the applet tag for a class in a package?
>the class is a member of a package.
>
>package name: javax
>class name: Hello
>
>
>I wrote the following:<APPLET CODE ="javax.Hello" WIDTH = 400 HEIGHT =
>300>
Change that to <applet code="javax.Hello.class" width=400 height=300>.
Then the class file will need to be in a directory named "javax" which
resides in the same directory as your document.
--
David Risner -- Programmer (Java, CGI, NeXT)
Electronic Desktop Project, Cal State Los Angeles
Change NOSPAM to ibm in address to e-mail me
http://www.geocities.com/~drisner/