From a Java program, I need to launch the default browser on a local HTML file, pointed to an anchor inside the file. In Java SE 6, the java.awt.Desktop.browse method will
Solution on Windows is:
rundll32 URL.dll, FileProtocolHandler "file:///x:/temp/fragtest.htm#frag"
Mind the quotes!!!
rundll32 URL.dll, FileProtocolHandler file:///x:/temp/fragtest.htm#frag does work as expected.