How to start a new process in Java?


Using ProcessBuilder class of java.lang package



public class ProcessTest
{
    public static void main(String[] args) throws Exception
    {
        new ProcessBuilder("calc").start();
    }
}

Comments

  1. Great job. If you want to know more about development you should visit this site where there are many different categories including node.js companies .

    ReplyDelete

Post a Comment