Results 1 to 2 of 2
  1. #1
    Jhovarie is offline Banned
    Join Date
    Feb 2011
    Posts
    65
    Rep Power
    0

    Default how to start and stop other java applicaton

    hello guys i wonder how to do this.

    public class startotherclass {
    public static void main(String[]args){
    // I need code to start classtostart.java
    }
    }


    public class classtostart {
    public static void main(String[]args){
    while(true){
    //Chek file if change
    }
    }
    }

    public class stopclasstostart {
    public static void main(String[]args){
    //I need code to stop classtostart.java
    }
    }

    i need this code so that i can protect my file even i close my main application in java.

    i must start classtostart.java so that it will protect my file even i close my main project please help.

  2. #2
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    6

    Default

    in the api of the class Thread all methods needed to start, stop etc. are well exaplained. please, read the api and if you have questions about it post it here

Similar Threads

  1. Replies: 1
    Last Post: 01-18-2011, 06:27 PM
  2. Use stop button to stop moving (stop timers) on JPanel
    By mneskovic in forum New To Java
    Replies: 3
    Last Post: 07-23-2010, 12:50 PM
  3. applicaton for nokia S60 devices(Translator), need help
    By Basit781 in forum CLDC and MIDP
    Replies: 0
    Last Post: 05-18-2010, 03:42 PM
  4. Replies: 5
    Last Post: 03-20-2009, 10:04 PM
  5. Applets (init, start, stop, destroy)
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-12-2007, 10:57 AM

Posting Permissions

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