java audio application
===

I have this code and this error occurs Error:could not create audio stream from input stream, whats the problem? is it a location of audio file, I'm using java netbeans, I just want to run this program to apply method in other program.



    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.io.FileInputStream;
    import java.io.IOException;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import sun.audio.AudioData;
    import sun.audio.AudioPlayer;
    import sun.audio.AudioStream;
    import sun.audio.ContinuousAudioDataStream;
    
    public class Sounds {

     public static void main(String[] args) {

        JFrame frame = new JFrame();
        frame.setSize(400, 400);
        JButton  Button= new JButton("CLick here");
        //Button.setSize(50, 50);
        frame.add(Button);
        Button.addActionListener(new AL());
        frame.setVisible(true);
        
        // TODO code application logic here
         public static class AL implements ActionListener{

        @Override
  

     public static class AL implements ActionListener
     {
        @Override
        public final void actionPerformed(ActionEvent e)
         {
           music();
         }
     }

        public static void  music()
        {
         AudioPlayer MGP = AudioPlayer.player;
         AudioStream BGM ;
         AudioData    MD;
         ContinuousAudioDataStream loop = null;
         try{
         BGM = new AudioStream(new FileInputStream("OneLove.wav"));
        MD = BGM.getData();
        loop = new ContinuousAudioDataStream(MD);
        }catch(IOException error){System.out.println("Error:"+ error.getMessage());}
        MGP.start(loop);
        }
            }