Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

help

0 views
Skip to first unread message

Zhisong Guo

unread,
Nov 13, 1997, 3:00:00 AM11/13/97
to

Hi, there:

I'm a new comer to this group. I have a question regarding a java applet
I'm working on. I have a class by name Elevator which extends Panel and
has got a public constructor. The compilation of the applet is just fine.
However, I'm getting an error message: Load: Elevator.class is not
public or has no public constructor.
java.lang.IllegalAccessException: Elevator
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)

I'm puzzled why I'm getting error even though the Elevator constructor is
defined public.

Please help me out with this.

Thanks a lot.

zhisong guo

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Zhisong Guo |
| 370 Normandy Circle |
| Nashville, TN 37209 |
| (615) 297-6146 322-5164(o) |
| http://www.vuse.vanderbilt.edu/~guoz/main.html |
| visit VUCSSO at: http://www.vanderbilt.edu/csso/ |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


0 new messages