I am learning programming in java. I read about the clip() method, and I passed a file in my C:/My Music folder as the url, it shows no exception but no song is played. I have the song.wav file at the specified path. But I do not hear any sound when I run this program. I use Eclipse IDE, at first I specified the path as " C:/My Music/song.wav" but it showed an exception of unknown protocol, hence I added
file://C:... to the path, yet I do not hear any sound, I want to make a program which while running plays this song.wav as background music. Please help me and guide me on what to do?
Here's the code ( only for playing the song )