Results 1 to 6 of 6

Thread: runtime method

  1. #1
    roo7 is offline Member
    Join Date
    Nov 2007
    Posts
    6
    Rep Power
    0

    Default runtime method

    Hi everyone,


    How I can use runtime method to call powerpoint(slidshow) to run it in the java programs??!!



    thanks.

  2. #2
    staykovmarin is offline Senior Member
    Join Date
    Nov 2007
    Location
    Newport, WA
    Posts
    141
    Rep Power
    0

    Default

    You can just execute the exe which is in the Power Point folder (wherever you have ppt installed). Here is a list of options that you can run with it: Command Line Switches - PowerPoint and PowerPoint Viewers

  3. #3
    sandeepkk2005 is offline Member
    Join Date
    Nov 2007
    Posts
    18
    Rep Power
    0

    Default

    Runtime.getRuntime.exec("cmd /c start yourpp.pps");
    Or
    Runtime.getRuntime.exec("cmd /c start file:/yourpp.pps");

  4. #4
    sandeepkk2005 is offline Member
    Join Date
    Nov 2007
    Posts
    18
    Rep Power
    0

    Default

    This works fine for opening any files like exe, xml, xls, doc etc.

  5. #5
    roo7 is offline Member
    Join Date
    Nov 2007
    Posts
    6
    Rep Power
    0

    Default

    Thank you very much.
    *.*

  6. #6
    sandeepkk2005 is offline Member
    Join Date
    Nov 2007
    Posts
    18
    Rep Power
    0

Similar Threads

  1. Example of RunTime class
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-04-2008, 09:32 AM
  2. Runtime Exceptions
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-12-2007, 10:31 AM
  3. Nuxeo Runtime 1.3.1
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 08-10-2007, 04:45 PM
  4. Nuxeo Runtime 1.2
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 06-22-2007, 06:01 PM

Posting Permissions

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