Launches the default browser to display a {@code URI}. If the default browser is not able to handle the specified {@code URI}, the application registered for handling {@code URIs} of the specified type is invoked. The applicationis determined from the protocol and path of the {@code URI}, as defined by the {@code URI} class.
If the calling thread does not have the necessary permissions, and this is invoked from within an applet, {@code AppletContext.showDocument()} is used. Similarly, if the callingdoes not have the necessary permissions, and this is invoked from within a Java Web Started application, {@code BasicService.showDocument()}is used.
@param uri the URI to be displayed in the user default browser
@throws NullPointerException if {@code uri} is {@code null}
@throws UnsupportedOperationException if the current platformdoes not support the {@link Desktop.Action#BROWSE} action
@throws IOException if the user default browser is not found,or it fails to be launched, or the default handler application failed to be launched
@throws SecurityException if a security manager exists and itdenies the AWTPermission("showWindowWithoutWarningBanner")
permission, or the calling thread is not allowed to create a subprocess; and not invoked from within an applet or Java Web Started application
@throws IllegalArgumentException if the necessary permissionsare not available and the URI can not be converted to a {@code URL}
@see java.net.URI
@see java.awt.AWTPermission
@see java.applet.AppletContext