Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-16-2008, 10:29 PM
Java Tip's Avatar
Moderator
 
Join Date: Nov 2007
Posts: 1,691
Rep Power: 5
Java Tip will become famous soon enoughJava Tip will become famous soon enough
Default Launching an application from another application using thread
The code snippet below shows how to launch an application from another application using threads.

Code:
public class Program2 {
    public static void main(String arg[]) {
        System.out.println("Hello from Program2");
    }
}
...
public class Program1a {
    public static void main(String arg[]) {
        System.out.println("Hello from Program1a");
        new Thread(){
            public void run() {
                Program2.main(new String[]{});}
                }.start();
    }

}
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Launching an application from another application dynamically Java Tip Java Tips 0 02-16-2008 10:31 PM
Lottery Application notnumber6 New To Java 3 11-03-2007 12:42 PM
Deployment of a Web Application JavaForums Java Blogs 2 10-29-2007 03:57 PM
how to use JTA for application mary Advanced Java 1 07-13-2007 05:34 PM
Help, GUI Application Felissa AWT / Swing 2 07-04-2007 09:19 AM


All times are GMT +2. The time now is 04:40 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org