Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • owao! ! ! the error has gone. Now I can understand it. But when I run the program its giving me another exception error: java.lang.NullPointerException why? Commented Nov 27, 2012 at 21:47
  • @Tushar I recommend you accept one of these answers to finish this question. Then submit the new problem as a new question. Commented Nov 27, 2012 at 21:51
  • @Tushar: probably it can't find the wav file. getResourceAsStream returns null if the file isn't present. also: 1) I agree with Guido's comment, 2) asking people to explain an exception without showing them a stacktrace is unreasonable. Commented Nov 27, 2012 at 21:54