LWJGL
May 22, 2012, 15:39:32 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.8.3 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: Space Invader Sound Loading Problem  (Read 2390 times)
SilentShaddo
Newbie
*
Posts: 3


« on: January 24, 2011, 08:04:45 »

Hey guys, I've followed everything on the http://lwjgl.com/wiki/index.php?title=Setting_Up_LWJGL_with_JCreator to set up space invader on jcreator but i am getting this problem:



Exception in thread "main" java.lang.NullPointerException
    at org.lwjgl.examples.spaceinvaders.SoundManager.addSound(SoundManager.java:157)
    at org.lwjgl.examples.spaceinvaders.Game.initialize(Game.java:250)
    at org.lwjgl.examples.spaceinvaders.Game.<init>(Game.java:182)
    at org.lwjgl.examples.spaceinvaders.Game.main(Game.java:588)


Does anyone know what I am doing wrong?
Logged
kappa
Administrator
Nerdus Imperius
*****
Posts: 961



« Reply #1 on: January 24, 2011, 08:32:47 »

make sure the resources for the space invaders demo are also on the class path (i.e. the 'res' folder which contains the wav files).
Logged
SilentShaddo
Newbie
*
Posts: 3


« Reply #2 on: January 24, 2011, 14:35:15 »

I install it in my downloads folder. This makes it

C:\Users\Vong Vang\Downloads\lwjgl-2.6

and that res is also in that lwjgl-2.6 folder.

still giving me the same error
Logged
SilentShaddo
Newbie
*
Posts: 3


« Reply #3 on: January 26, 2011, 07:36:57 »

Ah. Found the solution. ^^ thanks bro
Logged
zakrn
Newbie
*
Posts: 1


« Reply #4 on: February 13, 2011, 20:37:19 »

im also having this problem and cant seem to fix it, do tell.
Logged
Matzon
Administrator
Demigod
*****
Posts: 2177



« Reply #5 on: February 13, 2011, 22:35:09 »

as kappa says - you need to make sure the res folder is on the class path
Logged

http://certusgames.com (Free Online Multiplayer Java Games)
http://lwjgl.org (OpenGL/OpenAL for Java)
Mickelukas
Talks Too Much
***
Posts: 152


WWW
« Reply #6 on: February 14, 2011, 06:22:21 »

I got the same error when trying to add an ogg file. After having looked around a lot yesterday on the forum and other pages I came to the conclusion to use JOrbis for ogg sounds instead of JOAL.
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!