hello every one

I am going to create a small project for playing video and audio file in java netbeans.

But i dont know where i have to start.I download jmf from sun and add all jar file in library
But when i write code then it gives error on createRealizedPlayer line my code is that

[String mediaurl=jTextField1.getText();
Player mediaPlayer = Manager.createRealizedPlayer(mediaurl); Component video = mediaPlayer.getVisualComponent();
Component controls = mediaPlayer.getControlPanelComponent();
catch (NoPlayerException noPlayerException)
System.err.println( "No media player found" );
Please give me the reason of this error .And if you have any suggestion about playing video in java application then please tell me

Thank You