import sun.audio.*;
import java.io.*;
public class musicTest
{
public static void main(String[] args)
{
try
{
InputStream in = new FileInputStream("musicFile.mp3");
AudioStream as = new AudioStream(in);
AudioPlayer.player.start(as);
}
catch(FileNotFoundException e)
{
System.out.println("File does not exist or could not be found.");
System.out.println("FileNotFoundException: " + e.getMessage());
}
catch(IOException e)
{
System.out.println("Problem reading file.");
System.out.println("IOException: " + e.getMessage());
}
}
}
When I try compiling the program, it says, "AudioStream is internal proprietary API and may be removed in a future release... AudioPlayer is internal proprietary API and may be removed in a future release..."
How do I fix this?