What is null on line 16 (add some println's in there to debug and see if the url is null - if so, are you sure the audio file is in the appropriate location (same package as the class))?