When I run the script, the browser proceeds to perpetually open new tabs until I end the process in the task manager. Shouldn't this loop only open the browser once? Even if you ignore the while loop and only focus on the browser request I get the same behavior. Does this have to do with the try/catch? What's going wrong here?
Desktop d = Desktop.getDesktop();
Boolean doOnce = false;
while (doOnce == false) {
try {
d.browse(new URI("http://localhost"));
doOnce = true;
} catch (URISyntaxException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}