playing sound from jar file

Hi Mrs,How can i play a sound file after bundling it in a jar file. I used getclass.getResource but it didn't workWhat can i do?thnx.
[162 byte] By [jpn1ie] at [2007-9-30 22:13:31]
# 1

it depends on the place you called this method and the place of the sound clip, the class within which you called the method must be at the same directory of the sound clip, if you used the file name as the parameter of this method without supplying directores like sounds/myClip.mid

ex.

package myPack.test

class Test{

...

...

...

getclass.getResource("myClip.mid"); //this call assumes that the file path is ...myPack/test/myClip.mid

}

GoodLuck

MohdSleem at 2007-7-7 11:26:39 > top of Java-index,Administration Tools,Sun Connection...
# 2
I already did that but it didn't work .
jpn1ie at 2007-7-7 11:26:39 > top of Java-index,Administration Tools,Sun Connection...