I've got a nice little app done with a wav file to make a noise.
Now I'd like to clean & build the whole thing into MyApp.jar with NetBeans.
Problem is.....where do I put my abc.wav file? Must I modify an xml for this?
Kevin Moody
Greenhorn
Joined: Jan 26, 2011
Posts: 2
posted
0
First create a new Java package like com.dave.elwood.resource.sounds within your main project. Then just copy/paste 'abc.wav' file into that new package.
What I meant to hint to you was check your code. Are you trying to load the same file in the code?
Do you think Resources.bang.wav and resources/bang.wav are the same?
Dave Elwood
Ranch Hand
Joined: Dec 27, 2002
Posts: 83
posted
0
Do you think Resources.bang.wav and resources/bang.wav are the same?
which one of you told me this? :
First create a new Java package like com.dave.elwood.resource.sounds within your main project. Then just copy/paste 'abc.wav' file into that new package.
it works : InputStream in = this.getClass().getResourceAsStream("../Resources/Bang.wav");