Closed Thread
Results 1 to 5 of 5

Thread: Execute a program from within another program

  1. #1
    gabrielle_l is offline Newbie
    Join Date
    Feb 2010
    Posts
    5
    Rep Power
    0

    Execute a program from within another program

    I am using eclipse and have two programs. Program 1 is a simple GUI with some buttons. One of these buttons should start up program 2 when clicked.

    How do I execute program 2 from within program 1?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    bobdark's Avatar
    bobdark is offline Programmer
    Join Date
    Jan 2010
    Location
    Haifa, Israel
    Posts
    164
    Rep Power
    9

  4. #3
    bobdark's Avatar
    bobdark is offline Programmer
    Join Date
    Jan 2010
    Location
    Haifa, Israel
    Posts
    164
    Rep Power
    9

    Re: Execute a program from within another program


  5. #4
    gabrielle_l is offline Newbie
    Join Date
    Feb 2010
    Posts
    5
    Rep Power
    0

    Re: Execute a program from within another program

    Thanks, I know i need to apply an action listener but im concerned about how to execute the program from this program, since they are in different projects?

  6. #5
    bobdark's Avatar
    bobdark is offline Programmer
    Join Date
    Jan 2010
    Location
    Haifa, Israel
    Posts
    164
    Rep Power
    9

    Re: Execute a program from within another program

    I did some search and I believe this is what you need.
    Runtime (Java 2 Platform SE 5.0)
    More precisely, the exec method.
    Just be sure to do some searching and reading on your own on the matter since from what I saw, using it is not trivial.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Program for search terms within a program
    By 817moose in forum General Programming
    Replies: 4
    Last Post: 11-03-2010, 01:07 PM
  2. Why do you program/Why are you learning to program?
    By taylerhughes in forum The Lounge
    Replies: 34
    Last Post: 08-11-2010, 12:26 AM
  3. Replies: 9
    Last Post: 03-14-2010, 08:44 PM
  4. Replies: 8
    Last Post: 05-11-2009, 01:41 AM
  5. Execute an .exe file through c program
    By crabypatty in forum C and C++
    Replies: 7
    Last Post: 11-07-2008, 11:34 AM

Tags for this Thread

Bookmarks

Posting Permissions

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