Categories
Java

Open a URL in the default browser in Java

When developing a Java desktop or command-line application, you may need to prompt the operating system to open a URL. For instance, to login or approve authentication (OAuth). One approach is to print out the URL and ask the user to copy/paste it. A better alternative is opening that in the user’s default browser automatically. […]

Exit mobile version