Approved: Fortect
In this tutorial, we’ll identify some possible causes that might be preventing the Helpset from being found in the current classpath, and then I’ll provide some possible fixes that you can try to fix.
I am trying to use the JavaHelp system in my project which was developed with Eclipse.I extracted the following code for an example:
private HelpSet getHelpSet (String helpsetfile) HelpSet hs = null; ClassLoader cl corresponds to this.getClass (). GetClassLoader (); Try URL hsURL = HelpSet.findHelpSet (cl, helpsetfile); hs = new HelpSet (null, hsURL);capture (ee exception) System.out.println ("HelpSet:" + ee.getMessage ()); System.out.println ("HelpSet:" + helpsetfile + "not found"); reuse hs; HelpSet hs implies getHelpSet ("doc / Sample.hs.txt");
Approved: Fortect
Fortect is the world's most popular and effective PC repair tool. It is trusted by millions of people to keep their systems running fast, smooth, and error-free. With its simple user interface and powerful scanning engine, Fortect quickly finds and fixes a broad range of Windows problems - from system instability and security issues to memory management and performance bottlenecks.
The HelpSet file cannot be found at this time (doc / Sample exist.hs.txt). I am guessing there is something wrong with the path or using the ClassLoader, but I cannot figure out what the problem is.Anyone have any ideas?
requested May 19 ’11 found 4:24 PM
37.6k
Not The Answer You Want To Approve? Search For Other Questions Using The Java Classloader Javahelp Tag Or Ask Your Own Question.
hs = new HelpSet (null, hsURL);
The HelpSet class gets null
instead of the ClassLoader instance, I would say, so it can’t load all kinds of stuff. Should be:
hs = new help set (cl, hsURL);
answered May 19, 11, maybe 4:31 pm.
24.5k
The .hs.txt extension does not work. Try adding only .hs to your help set.
answered Jul 30, 2013 at 10:19 am
2,350
Speed up your computer's performance now with this simple download.