Results 1 to 3 of 3
  1. #1
    Dimebag is offline Member
    Join Date
    May 2010
    Posts
    3
    Rep Power
    0

    Default Mplayer + Mac OS

    Hey, I need to open video files with my java application, I was looking for mplayer project for Mac OS.
    I can easly use it on Windows with this code:
    Java Code:
    mplayerProcess = Runtime.getRuntime().exec("open \"mplayer/mplayer.exe -slave -quiet -idle " + mediaURL);
    For leopard I need to run mplayer.app instead. So I use this code:
    Java Code:
    mplayerProcess = Runtime.getRuntime().exec("open \"mplayer/mplayer.app -slave -quiet -idle " + mediaURL);
    But nothing happen. Actually my folder structure is
    Root
    -> Javaapp (where the jar is located)
    -> mplayer
    mplayer.app

    I've tried also to just open the mplayer.app file with
    Java Code:
    mplayerProcess = Runtime.getRuntime().exec("open \"mplayer/mplayer.app");
    But nothing happened aswell... the terminal didn't show any errors.
    What I'm doing wrong? Any Clue?

    Thanks,

  2. #2
    Webuser is offline Senior Member
    Join Date
    Dec 2008
    Posts
    526
    Rep Power
    0

    Default

    Do yo have JRE installed ?

  3. #3
    Dimebag is offline Member
    Join Date
    May 2010
    Posts
    3
    Rep Power
    0

    Default

    Sure I have. My Java application is working just fine. In the ui there is a button to open the mplayer. Simple as that.
    But is not working...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •