When Netscape load html file, this appears:
# Applet exception: class exapmle2.Applet2 not found
java.lang.ClassNotFoundException: exapmle2.Applet2
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.lang.ClassNotFoundException.<init>(Compiled Code)
at netscape.applet.AppletClassLoader.findClass(Compiled Code)
at netscape.applet.AppletClassLoader.loadClass1(Compiled Code)
* at netscape.applet.AppletClassLoader.loadClass(Compiled Code)
at netscape.applet.AppletClassLoader.loadClass(Compiled Code)
at netscape.applet.DerivedAppletFrame.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
I also tried Sun Java Plug-in (v. 1.1.1) and get other error:
File not found when looking for: exapmle2.Applet2
java.lang.NullPointerException
at sun.applet.AppletPanel.createApplet(AppletPanel.java:462)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:398)
at sun.applet.AppletPanel.run(Compiled Code)
at java.lang.Thread.run(Thread.java:474)
When I unpacked all files and erase archive tag in html file, everithing
was o.k. (only with Sun Java Plug-In).
I appreciate any suggestion in this group or on my e-mail:
tomas.t...@usa.net
Tomas
Is Applet2 part of a package called exapmle2? That is how your naming will
be interpreted by the class loader.
If it is not part of a package called exapmle2, then you should take the
period out of the name.
--
David Risner -- Programmer (Java, CGI, NeXT)
Electronic Desktop Project, Cal State Los Angeles
http://www.geocities.com/~drisner/
At any rate I've just about given up on JBuilder since I never "got
it." The problem for me was their documantation! The help files never
really explain what these settings mean. I did finally get a project to
deploy correctly, but that was by doing what I described above. If your
.java files begin with a "packages" statement at the top, try a new
project with different settings. Yes, I realize I probably didn't do
things right, didn't read the right help file, or my brain just isn't
wired correctly - but I nonetheless had incredible problems with
JBuilder that I didn't have with Visual Cafe or writing directly to the
JDK using Kawa.
Good luck - hope someone else is able to shed light on these problems!
--
Pierre A. von Kaenel
Math & Computer Science Dept.
Skidmore College
Saratoga Springs, NY 12866