I am trying to add sound code to my game and have it a snag, When i run my game applet the applet goes blank and an error is shown in the java console:
java.lang.NullPointerException
at SoundClip.load(SoundClip.java:150)
at SoundClip.<init>(SoundClip.java:76)
at EightBitOoze.init(EightBitOoze.java:99)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.lang.NullPointerException
Trackback:
at SoundClip.load(SoundClip.java:150)
at SoundClip.<init>(SoundClip.java:76)
at EightBitOoze.init(EightBitOoze.java:99)
1 2 3
|
beep = new SoundClip("Beep.wav");
|
The latest version of the source code can be found
here.Any assistence in this matter would be greatly appreciated.
Sincerely,
8BitOoze