Launches the associated application to open the file.
If the specified file is a directory, the file manager of the current platform is launched to open it.
@param file the file to be opened with the associated application
@throws NullPointerException if {@code file} is {@code null}
@throws IllegalArgumentException if the specified file doesn'texist
@throws UnsupportedOperationException if the current platformdoes not support the {@link Desktop.Action#OPEN} action
@throws IOException if the specified file has no associatedapplication or the associated application fails to be launched
@throws SecurityException if a security manager exists and its{@link java.lang.SecurityManager#checkRead(java.lang.String)}method denies read access to the file, or it denies the AWTPermission("showWindowWithoutWarningBanner")
permission, or the calling thread is not allowed to create a subprocess
@see java.awt.AWTPermission