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

    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

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

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

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

    i must start 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
    Zurich, Switzerland
    Rep Power


    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, 07: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, 01: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, 04:42 PM
  4. Replies: 5
    Last Post: 03-20-2009, 11:04 PM
  5. Applets (init, start, stop, destroy)
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-12-2007, 11: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