Skip to main content

Helpset not found

1 reply [Last post]
Anonymous

Hello all,
I am using the following code to find the helpset file:

try {
ClassLoader cl = GuiHelp.class.getClassLoader();
System.out.println("we're here and cl is" + cl.toString());
URL url = HelpSet.findHelpSet(cl, helpsetName);
(Exception is thrown here)
System.out.println("url is" + url.toString());
mainHS = new HelpSet(cl, url);
}
the helpset file can't be found and I get an empty frame. The .hs file is
in the same help directory as the GuiHelp.class file. I have read all the
emails about this and tried what they said and the file still can't be
found. If the suggestion is to set the classpath var, please give detailed
instructions on how to do it.
Thanks,
Mitra

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Roger Brinkley

Mitra Aminpour wrote:
> Hello all, I am using the following code to find the helpset file:
>
> try { ClassLoader cl = GuiHelp.class.getClassLoader();
> System.out.println("we're here and cl is" + cl.toString()); URL url =
> HelpSet.findHelpSet(cl, helpsetName); (Exception is thrown here)
> System.out.println("url is" + url.toString()); mainHS = new
> HelpSet(cl, url); } the helpset file can't be found and I get an
> empty frame. The .hs file is in the same help directory as the
> GuiHelp.class file. I have read all the emails about this and tried
> what they said and the file still can't be found. If the suggestion
> is to set the classpath var, please give detailed instructions on how
> to do it.

Start by reading the JavaHelp User's Guide on this.

What is the output that is generated?

For more information on setting the class path, see
http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/classpath.html

Binky

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.