2

So I understand that using the method:

Desktop.getDesktop().browse(URI.create("http://www.stackoverflow.com/"));

I can open a webpage with my default browser, but is there a way I can specify a path to a non-default browser and open a url with that one? ie. my default is Chrome, but I want to open in Mozilla Firefox.

1 Answer 1

2

You need to use Runtime.exec(). Mkyong has a good example for you.

Sign up to request clarification or add additional context in comments.

1 Comment

Hmm yeah, I've read up a little on the documentation. I see you can specify the "entry point". Thanks for the quick answer!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.