The code snippet below shows how to launch an application from another application using threads.

Java 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();
    }

}