Why does this keep giving a parse error when trying to use JavaHelp
I'm trying to get JavaHelp to integrate into my application, but when I call the code below I get the following error;
javax.help.HelpSetException: Could not parse
Got an IOException (null)
Parsing failedfornull
the error is occuring at the line indicated;
HelpSet helpSet;
HelpBroker helpBroker;
try
{
URL url =new URL("file","", -1,"file://C:/jh1.1.3/demos/hsjar/idehelp.jar");
ClassLoader loader =new URLClassLoader(new URL[]{url});
URL helpUrl =null;
helpUrl = HelpSet.findHelpSet(loader,"IdeHelp.hs");
helpSet =new HelpSet(loader, helpUrl);// *** error here ***
helpBroker = helpSet.createHelpBroker();
helpBroker.enableHelpKey(rootPane,"top", helpSet);
CSH.setHelpIDString(menuItem,"Help");
helpBroker.enableHelpOnButton(menuItem,"Help", helpSet);
}
catch (Exception ex)
{
ex.printStackTrace();
}
helpURL never seems to take a value, always staying at null. Can anyone see what I'm doing wrong?
Thanks

