How to open Internet Explorer in windows with Java

1 Answer

0 votes
package javaapplication1;

public class JavaApplication1 {

    public static void main(String[] args) {

        try {

            ProcessBuilder p = new ProcessBuilder();

            p.command("C:\\Program Files\\Internet Explorer\\iexplore.exe");
            p.start();

        } catch (Exception e) {
            System.out.print(e.toString());
        }
    }
}

/*
             
run:


    
 */

 



answered Nov 27, 2016 by avibootz

Related questions

1 answer 359 views
1 answer 343 views
1 answer 316 views
1 answer 277 views
1 answer 284 views
1 answer 184 views
184 views asked Aug 23, 2023 by avibootz
1 answer 311 views
...