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

[1764 byte] By [nutthick2a] at [2007-10-2 5:49:57]
# 1
Got it sorted. I had to create a CLASSPATH to the jar and then the hs reference worked fine. :D
nutthick2a at 2007-7-16 1:59:22 > top of Java-index,Desktop,Developing for the Desktop...