public class DetachedExec {

    public static void main(String[] args) {
        Thread t = new Thread() {
                public void run() {
                    try {
                        Runtime.getRuntime().exec("xterm");
                    } catch (Throwable e) {
                        e.printStackTrace();
                    }
                }
            };
        t.setDaemon(true);
        t.start();
    }
    

}// DetachedExec
