Home > Back-end >  Java how to take the path of the local default browser
Java how to take the path of the local default browser

Time:10-22

The ProcessBuilder builder=new ProcessBuilder (
"C: \ \ Program Files \ \ Internet Explorer \ \ iexplore", url);
Builder. The start ();




The Runtime. GetRuntime (). The exec (" rundll32 url. DLL, FileProtocolHandler http://www.jb51.net ");


The above two local calls can be, but on the server can't find the path
Which bosses know
  • Related