Article View: borland.public.jbuilder.java.swing
Article #1786Re: Variable Helpset not found
From: Craig Wilson
Date: Tue, 22 Jul 2003 17:50
Date: Tue, 22 Jul 2003 17:50
45 lines
2753 bytes
2753 bytes
John: I created a jar file with the hs file at the root and the other files in their subdirectories, and was able to display normally using jhviewer. I tried putting myHelp.jar in c:\, in the project folder (where other resources are being found successfully), in the projectfolder\classes folder, and in the project\classes\myproject folder (where the *.class files are found). I have URL hsURL = HelpSet.findHelpSet(cLoader, "/myHelpSet.hs"); where cLoader is either null or obtained from ClassLoader cLoader = this.getClass().getClassLoader(); and it still isn't finding it. Am I still misunderstanding the situation? I really appreciate your help. Craig "John McGrath [TeamB]" <ng-b@jpmcgrath.net> wrote in message news:3f1b881f@newsgroups.borland.com... > On 7/19/2003 at 1:03:27 PM, Craig Wilson wrote: > > > > > URL hsURL = HelpSet.findHelpSet(null, "myHelpSet.hs"); > > > However, it returns null, meaning that it isn't finding myHelpSet.hs, > > The rules for finding a HelpSet are exactly the same as any other Java > resource (assuming things have not changed dramatically in 2.0. If you > specify a simple resource name (without a path), it will look in the > same location as the class that is calling findHelpSet. > > That would mean you will have to arrange for the ".hs" file to be > copied to your classpath, which does not happen by default. If this > file is in the same source sub-directory as the class loading it, you > can tell JBuilder to copy it in the properties for the file. > > I have generally stored my help sets in a separate JAR file, rooted at > '/'. I think it will find it there if you specify "/myHelpSet.hs". > > -- > Regards, > > John McGrath [TeamB]
Technical Details
Message-ID:
<3f1d78ec@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f183ef6@newsgroups.borland.com> <3f18481c$1@newsgroups.borland.com> <3f19799f@newsgroups.borland.com> <3f1b881f@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,f68d59cce603b54f X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2003-07-22 11:10:08 PST From: "Craig Wilson" <cwilson@got.net> Newsgroups: borland.public.jbuilder.java.swing References: <3f183ef6@newsgroups.borland.com> <3f18481c$1@newsgroups.borland.com> <3f19799f@newsgroups.borland.com> <3f1b881f@newsgroups.borland.com> Subject: Re: Variable Helpset not found Date: Tue, 22 Jul 2003 10:50:06 -0700 Lines: 47 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 64.125.88.10 Message-ID: <3f1d78ec@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1058896108 64.125.88.10 (22 Jul 2003 10:48:28 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail