[2948] in java-interest

home help back first fref pref prev next nref lref last post

standalone java applet

daemon@ATHENA.MIT.EDU (julie m)
Sat Oct 21 22:35:22 1995

Date: Sat, 21 Oct 1995 20:51:13 -0400
To: java-interest-digest@java.Eng.Sun.COM
From: julie m <julie@futuretense.com>

Hi all

I've created an applet with a main that can 'stand alone' via execution as

        java MyThing 

and all works well. Note that this applet/application does not fetch images.
Next I try to create an applet that should, if needed, be able to stand
alone in the same manner. However, it crashes as follows:

Exception in thread "main" java.lang.NullPointerException
        at java.applet.Applet.getAppletContext(Applet.java:83)
        at java.applet.Applet.getImage(Applet.java:110)
        at java.applet.Applet.getImage(Applet.java:122)
        at Gazette.getImage(Gazette.java:189)
        at Gazette.addFutureTense(Gazette.java:331)
        at Gazette.addSectionContent(Gazette.java:435)
        at Gazette.addContent(Gazette.java:467)
        at Gazette.makePublication(Gazette.java:230)
        at Gazette.init(Gazette.java:172)
        at Gazette.main(Gazette.java:535)

The trace indicates that there is no applet stub. Looks like I need one to
deal with images outside the appletviewer? I don't recall seeing that in the
documentation, but more importantly...what steps do I need to take to be
able to have a standalone application read in an image? 

Thanks

julie

-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post