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
For Windows only, you could try
System.exec("cmd.exe start file:///C:/foo/bar.html#anchor")