Computer Science Canada Start: Applet not initiated |
Author: | idtt2s [ Thu Jan 12, 2006 10:28 pm ] | ||
Post subject: | Start: Applet not initiated | ||
My very simple 33 line applet can't run, giving the error "Start: Applet not initiated" This is the Console output from Eclipse Quote: java.lang.NullPointerException
at java.applet.Applet.getCodeBase(Applet.java:146) at SoundApplet.<init>(SoundApplet.java:11) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at sun.applet.AppletPanel.createApplet(AppletPanel.java:721) at sun.applet.AppletPanel.runLoader(AppletPanel.java:650) at sun.applet.AppletPanel.run(AppletPanel.java:324) at java.lang.Thread.run(Thread.java:595) And this is the applet, too simple to really have errors, but I haven't done Java in so long I wouldn't know.
1st post question = How do you add syntax colouring in code tags? |
Author: | Hikaru79 [ Thu Jan 12, 2006 11:21 pm ] | ||
Post subject: | |||
Here you go.
|
Author: | idtt2s [ Fri Jan 13, 2006 4:05 pm ] |
Post subject: | |
I think my Eclipse applet is complaining that it doesn't find spacemusic.au. Where should I put spacemusic.au so that Eclipse can see it? |
Author: | Hikaru79 [ Fri Jan 13, 2006 4:14 pm ] |
Post subject: | |
In the same directory as the build.xml file, I believe. Or you can give the URL a full path to the file. (C:\Program Files\...\etc) |
Author: | idtt2s [ Fri Jan 13, 2006 4:18 pm ] | ||
Post subject: | |||
Where is build.xml? I get
|