Class NativeWebBrowserLauncher

java.lang.Object
com.nomagic.utils.NativeWebBrowserLauncher

@OpenApiAll public class NativeWebBrowserLauncher extends Object
NativeWebBrowserLauncher provides a static method to open the system default web browser to the given URL. It may support other protocols depending on the system (mailto, ftp, etc.), but this has not been accurate tested and is not guaranteed to work.
  • Constructor Details

    • NativeWebBrowserLauncher

      public NativeWebBrowserLauncher()
  • Method Details

    • openURL

      public static void openURL(String url) throws IOException
      Attempts to open the given URL in the default web browser.
      Parameters:
      url - the URL to open
      Throws:
      IOException - if the web browser is not found or does not run