A simple song playback is not working
I have a song rasputin.mid in my G:\java files1\jmf folder of my computer.
I have written this simple program to play this song but i get an error
import javax.media.*;
import java.io.*;
publicclass JMF1
{
publicstaticvoid main(String args[])throws Exception
{
File file=new File("G:/java files1/jmf/rasputin.mid");
Player player=Manager.createRealizedPlayer(file.toURL());
player.start();
}
}
This is the error i am getting
Error: Unable to prefetch com.sun.media.content.midi.Handler$MidiController@197d257
I can't understand what is wrong with the code. I have taken the code from the IBM tutorials. The path and the classpath are perfectly ok and they have been set during the installation process by the jmf itself.

