[4222] in java-interest
More "Applet not initialised": why do I need main? (not CLASSPATH prob)
daemon@ATHENA.MIT.EDU (Laurent Duperval)
Wed Dec 13 19:22:33 1995
From: laurent@Grafnetix.COM (Laurent Duperval)
Date: Wed, 13 Dec 1995 17:39:40 -0500
To: java-interest@java.sun.com
Well, well, well,
I also got this "ANI" error which seems to be as big a problem as M$'s GPF.
In my case, it doesn't seem to be related to the CLASSPATH env var. I wrote a
small applet to test a few things. It uses the PackerLayoutManager to install
GUI components. With the appletviewer, for some reason, it looks awful so I
tried it with Netscape2.0b3. It didn't work.
I found it pretty weird so I exited, modified mi CLASSPATH variable, restarted
but no dice. Then I tried another applet I had created and lo' and behold!
It worked.
So I looked at the difference between the two applets and saw that one had a
main() method, the other didn't. When I added the main method, it worked.
Can someone explain why?
I thought main() was only necessary when creating an application, not an
applet. I've got a start() and an init() method and that seems to be accepted
properly by the appletviewer but not Netscape. Anyone have an idea what it is
I don't understand about applets?
Thank you.
--
Laurent Duperval, Systems Analyst Grafnetix Systems Inc.
Tel: (514) 861-3389 777, de la Commune Ouest
Fax: (514) 866-6206 Suite 101, Montreal, Qc
Laurent@Grafnetix.COM Canada, H3C 1Y1
URL: http://www.grafnetix.COM
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com