I have a program that has a help jmenuItem that will open the html “help.html” file I made specifically for the program guidance. So i want it to pop from the Default browser reading it from the same path that contains my program. My html file name is “help.html”. How would I go about getting it. The following is what I have tried I am doing it wrong somehow, any kind of help is appreciated, thank you in advance.
try{
String url = "help.html";
java.awt.Desktop.getDesktop().browse(java.net.URI.create(url));
}
catch (java.io.IOException e1)
{
System.out.println(e1.getMessage());
}
Try this: