This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
you can run media player by two ways 1 using processbuilder object this works only with java1.5
PrcocessBuilder pb=new ProcessBuilder("spceify path of wmplayer"); now call (i am not explaining other features of processbuilder like how to set directory and how to set environment variable because i also dont know and no one from java ranch explain me!!! ) pb.start(); it will start media palyer
start method returns process object using this object you can controll that process like closing ,destroying etc.
use runtime class code Runtime r=Runtime.getRuntime(); now usig this runtime object call exe method r.exec("specify path of wmpalyer");