A new implementation System Property
(awt.desktop.browse_insecure) is provided to partially re-enable
previous behaviour of the java.awt.Desktop.browse() API. This is an
opt-in property, and the value is a comma-separated list of URL
schemes.
Eg :
-Dawt.desktop.browse_insecure=file,ftps,myapp
Background : On Windows and macOS platforms, the historic
behaviour of the java.awt.Desktop.browse() API was to invoke
platform APIs, rather than directly invoking the default
browser.
Since this behavior is now disabled, applications registered
with the platform desktop may no longer be launched unless the
browser also supports launching the application.
Usage : As a specific example on Windows, the new behaviour is
that invoking a file:/// URL will display in the browser.
To re-enable the previous behaviour of launching the Windows
Explorer application, on the command line specify
-Dawt.desktop.browse_insecure=file
To re-enable all schemes the application should specify a wild
card value, which should be used with extreme caution
-Dawt.desktop.browse_insecure=*