Application showDocument() method problem with a standalone application.
We are running a standalone application (in a Windows only environment) and I'm trying to use the org.jdesktop.swing.Application.showDocument() method to display an html page. I generate a file URL via
and the showDocument method converts the url to its external form, for example
However the windows call only seems to work when I add an additional forward slash after "file:", like so.
rundll32 url.dll,FileProtocolHandler file://C:/work/classes/test.html
Of course if you paste "file:/C:/work/classes/test.html" into the browser it resolves correctly.
It seems like there's an inconsistency in how Java views a URL string and how windows interprets it when calling the url.dll directly with rundll32?