Is that String music is a path to a music file in local?

because that you are using "this.getClass().getClassLoader().getResourceAsStream(music)", the music file must be in the local folder where...