Computer problems,Computer help
*AX SOFT>>>Programming & Design

How can I launch Windows Media Player 11 from a java program?


I'm running Windows Vista Home Premium and I have tried Runtime.exec("wmplayer") but it doesn't work! Runtime.exec("notepad") does work to launch Notepad so I don't know what I'm doing wrong

Make sure you are using the full pathname.

"c:\Program Files\blahblah\wmplayer.exe mymovie.mpeg"

I haven't used that command in a while, but I believe this could help you. If not, please post a comment letting me know that it's still not working.

Tags
  General - Computers & Internet   Software   Security   Programming & Design   Facebook   Flickr   Google   MSN   MySpace
Related information
  • The Webalizer or analog?

    Neither. Have a long look at Google Analytics. Full featured, powerful, and free. And you can start using it without signing up if you've already got a GMail account.

    ...
  • What are the pros and cons of web hosting?

    Not sure exactly if you're asking if you should host your website from your personal computer at home or purchase a web hosting account with a company? If that's the case, I'd wou...

  • What is a good website builder (free) plz help 10 points for sure?

    BLUE VODA rocks..! its is very easy to use.......n its freeware...u can have it frm its web tht is ...

  • How do I go on blocked sites at school? [with my own computer/no proxy]?

    Try it by the Ip numbers instead of www.myspace.com If that fails, I am afraid we are back to proxies.

    ...
  • Hi i need help with JAVA , can anyone help?

    public double powerTo(double d, int i){ double temp; if(i<0) temp = 0.0; else temp = Math.pow(d,i); return temp; }

    ...
  • Help with website??

    Setting up a Web site is very easy and if you want to do it for free just go to ...

  • How to Write a C program with a loop that asks user to enter a series of integers in the range of [-100 100].?

    Your loop will be a while loop anwer = -999; while (answer!=0) { ask user for answer if(answer<100 and answer>-100) { if(answer<smallest) smallest = answer if(answer>largest)...

  • Whats wrong with my code?

    This line is illegal: int 1=1,n,f; as "int" is used to declare a variable of type integer. You could always try saying int one = 1; int f; but I have no idea what the n is doing th...

  •  

    Categories--Copyright/IP Policy--Contact Webmaster