How to point to the HelpSet file which is inside a Jar

Hi All,
Can anyone please help me out on as to how I incorporate my help files (which are inside a jar) with JavaHelp. They are working fine when they are in a folder. But giving an error when i am trying to reference it from a jar file.
Thanx in advance,
Debopam.

Hello,
I have a little Example, and I hope this will help you.
Melly
* Opens the documentation in an JavaHelpViewer.
protected void showDocumentation() {
     String jarFilePath = ".../test.jar";
     HelpSet hs = getHelpSet(jarFilePath);
     if (hs!= null) {
     HelpBroker hb = new HelpBroker(hs);
hb.setDisplayed(true);
     else {
     System.out.error("Can't find the helpSet-file.");
* Returns the HelpSet file which is in included into the given
* jar file.
* @param jarFilePath
* @return the HelpSet file, or null, if the HelpSet file is not found.
protected HelpSet getHelpSet(String jarFilePath) {
     HelpSet hs = null;
     try {
     String hsName = null;
     JarFile jar = new JarFile(jarFilePath);
     Enumeration entries = jar.entries();
     while (entries.hasMoreElements()) {
          ZipEntry entry = (ZipEntry) entries.nextElement();
          String entryName = entry.getName();
          if (entryName.endsWith(".hs")) {
          hsName = entryName;
          break;
     URL url[] = getURLs("file:" + jarFilePath);
     ClassLoader cl = new URLClassLoader(url);
     URL hsUrl = HelpSet.findHelpSet(cl, hsName);
     hs = new HelpSet(cl, hsUrl);
     catch (Exception exc) {
     System.out.error("Can't find a HelpSet file in: " +jarFilePath");
     hs = null;
     return hs;

Similar Messages

  • How can I get the lib files which supported jsf?

    In one book , That introduce me to get the lib files from a jsf folder ,after you install the jwsdk1.3 ,now ,I installed the 1.5,but I cann't find this jsf folder.where I can get these lib files ? Thanks very much.

    Try data rescue or some other program. However, before proceeding turn off TM and avoid that muck up the next time you connect. AFAIK, however, it shouldn't have happened without a dialog box popping up allowing you to not use it for TM.
    See Pondini's TM FAQs for more information..

  • How to retrieve all the art objects which are inside a selected path?

    Hi,
    I need it for a plug-in I want to create.
    In fact, I want to enable the user to draw a closed path which will select all the objects inside it.
    I actually need something like a Lasso Tool but one which also draws a path.
    I'm looking for it, but unable to find it.
    If you can help me, I'll be thankful.
    Leon.

    Let's say I require that the entire art must be inside the path(Or at least all it's anchor points).
    Anyway, one thing for sure - I assume the path is a simple closed path, ie the path doesn't intersect itself(like figure 8 shape).
    What is the way to check whether an art or at least a point is inside such a path(not inside it's bounding rectangle, but inside it)?
    I wonder why there is no such function if the Lasso Tool exists in AI and it does some such geometry computation, at least this is what I think.
    I thank you guys for your replies.

  • How to create the SWF file which was included surrogate pairs.

    I would like to make sure how to create the SWF file which are included surrogate pairs.
    The error of outside the scope of unicode occurred when I compiled(mxmlc) the as file which was set surrogate pairs to 'Unicoderange'.
    Ex, I set the '  '(UTF-16 is '20B9F') to 'Unicoderange'.
    However, I cannot add the surrogate pairs.
    The error of outside the scope of Unicode occurred when I compiled the AS file.
    The reason of error was that the Unicode(UTF-16) of surrogate pairs is invalid.
    Then, I read the following pages.
    These pages are written that unicode-range supported surrogate pairs.
    http://livedocs.adobe.com/flex/3/html/help.html?content=fonts_07.html
    http://www.w3.org/TR/1998/REC-CSS2-19980512/fonts.html#descdef-unicode -range
    So please let me know how to create the SWF file which are included surrogate pairs.
    Environment
    - Flex3.5a
    - TTC: meiryo(ver6.02), msgothic(ver2.50), mspgothic(ver2.50)
    Thanks,
    Takeshi Ishihara.

    I've been able to create project jar files in Eclipse by selecting Export from the File menu, then choose Java - Jar file - and provide the required information, name, destination folder etc. But when I do this, I do not export other jars on the build path this way nor do I expect to do this. I am only concerned with creating a jar file of my own work. A jar file does not "contain" other jar files. If the jar file contains the main method, and requires other jars for it's execution, then you may wish to include a reference to required jars on the class path entry of the Manifest file of the jar file you create. I'm not sure how to create a Manifest file in eclipse though..

  • I recently updated the iOS on my ipad 3 and lost all my files in the process. How do I recover my lost files which were not previously backed up?

    I recently updated the iOS on my ipad 3 and lost all my files in the process. How do I recover my lost files which were not previously backed up?

    If you don't have them backed up somewhere, then there's little possibility of recovering them. There are some utilities that can in some cases recover an inadvertently-deleted photo, but I've found none that can recover photos or other data from an iPad that was erased as part of an iOS upgrade. You can do a web search for something like "iPhone photo recovery" and you'll find some utilities you can try.
    Regards.

  • I wrote a assignment in the microsoft word 97-2003 doc but by mistake replace in the same name but with different thing . how can i retain my orinal file which was as Basel III and Banking law

    i wrote a assignment of almost 2500 words in the microsoft word 97-2003 doc but by mistake replace  a table only in same name  . how can i retain my orinal file which was as Basel III and Banking law

    Hey Christian
    Thanks I havn't seen that post, busy trying it now but no luck so far.
    I defined it in the second one (Content Management - Utilities - MIME Types).
    Tried it now in NWA, no luck either . . .
    What I noticed is no matted what it is defined as in NWA or Content Management, the properties of the mht file still shows Binary File (application/octet-stream)
    Any ideas?
    Regards
    Antonette

  • How can i display a image file which is placed in the applications server

    Hi all,
    Can any one help me how can I display a image file which is present in the application server.
    With regards,
    M.Ramana Murthy

    hi,
    *& Form TOP_OF_PAGE
    * text
    FORM F_TOP_OF_PAGE.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    IT_LIST_COMMENTARY = IT_LISTHEADER
    i_logo = Logo name
    * I_END_OF_LIST_GRID =
    ENDFORM. "TOP_OF_PAGE
    rgds
    Anver

  • How do I point to the iTunes file that lists purchase history?

    My iTunes library got messed up and I've been able to point back to most of my settings but do I point to the iTunes file that lists purchase history? Perhaps I'm pointing to an old iTunes library by mistake?

    also, you could use this script: _*Track Down Purchases*_.
    This script will examine each track in a selection of tracks or a selected playlist to determine if it was purchased from the iTunes Store and then copies it to a discrete playlist named for the person who purchased it, eg: "Steve Ballmer's Purchased Music". Recognizes song, video, and audiobook purchases. Purchaser information is gleaned by examining the track's file, which, depending on file location and access speed, can take as long a second per track. Just sayin'.
    JGG

  • Exporting photos for UHDTV or Native 4K TV, what are the best settings ? (File: Quality File: Color Space, Image Sizing and resolution)   Or in other words; How can I get the smallest files but keep good quality for display on new UHDTV

    Exporting photos for UHDTV or Native 4K TV, what are the best settings ? (File: Quality File: Color Space, Image Sizing and resolution)   Or in other words; How can I get the smallest files but keep good quality for display on new UHDTV

    You're welcome, and thank you for the reply.
    2) Yesterday I made the subclips with the In-Out Points and Command-U, the benefit is that I've seen the clip before naming it. Now I'm using markers, it's benefit is that I can write comment and (the later) clip name at once, the drawback is that I have to view to the next shot's beginning before knowing what the shot contains.
    But now I found out that I can reconnect my clips independently to the format I converted the master clip to. I reconnected the media to the original AVI file and it worked, too! The more I work with, the more I'm sold on it... - although it doesn't seem to be able to read and use the date information within the DV AVI.
    1) Ok, I tried something similar within FCE. Just worked, but the file size still remains. Which codec settings should I use? Is the export to DV in MOV with a quality of 75% acceptable for both file size and quality? Or would be encoding as H.264 with best quality an option for archiving, knowing that I have to convert it back to DV if I (maybe) wan't to use it for editing later? Or anything else?
    Thank's in advance again,
    André

  • My performance is very slow when I run graphs. How do I increase the speed at which I can do other things while the data is being updated and displayed on the graphs?

    I am doing an an aquisition and displaying the data on graphs. When I run the program it is slow. I think because I have the number of scans to read associated with my scan rate. It takes the number of seconds I want to display on the chart times the scan rate and feeds that into the number of samples to read at a time from the AI read. The problem is that it stalls until the data points are aquired and displayed so I cannot click or change values on the front panel until the updates occur on the graph. What can I do to be able to help this?

    On Fri, 15 Aug 2003 11:55:03 -0500 (CDT), HAL wrote:
    >My performance is very slow when I run graphs. How do I increase the
    >speed at which I can do other things while the data is being updated
    >and displayed on the graphs?
    >
    >I am doing an an aquisition and displaying the data on graphs. When I
    >run the program it is slow. I think because I have the number of
    >scans to read associated with my scan rate. It takes the number of
    >seconds I want to display on the chart times the scan rate and feeds
    >that into the number of samples to read at a time from the AI read.
    >The problem is that it stalls until the data points are aquired and
    >displayed so I cannot click or change values on the front panel until
    >the updates occur on the graph. What can I do to be a
    ble to help
    >this?
    It may also be your graphics card. LabVIEW can max the CPU and you
    screen may not be refreshing very fast.
    --Ray
    "There are very few problems that cannot be solved by
    orders ending with 'or die.' " -Alistair J.R Young

  • How can we capitalize the PR/PO, which are already booked in cost center?

    We are creating a capital Project for our department.  We have the structures ready and finalized with the budgets. But, the department has already done some commitments and expenditures in their cost center .Now, this expenditure and commitment values needs to be reflected in the report, so that correct values of assigned and available should be updated.
    1) Pls. suggest a process using which we can transfer this amount. Is this to be done by an FI entry or else we need to commit using sanction request?
    2) How can we capitalize the PR/PO, which are already booked in cost center?

    Hi,
    As we know the Contract is an Outline agreement for Quantity or Value for a particular Period with vendor.
    Without mentioning Plant also we can make contract for the Purchase organisation level for particular Material for the entire period
    Where as while creating PR  -it is an Indent for the material requiement for the specific Plant so when you refer Agreement inthe PR creation time System will ask you how much quantity to what plant you want to place indent. where as In PO  it ia an legal document so when you refer Agreement it will take all the details from Contract
    i think you are clear with my points
    With regrads
    Shrinivas gangoor
    Edited by: Shrinivas Gangoor on May 22, 2009 2:53 PM
    Edited by: Shrinivas Gangoor on May 22, 2009 2:54 PM

  • Creation of Password for the Zip file which are sent thru email

    Dear Experts,
                          how to create a password for the zip file which is sent via email through a abap program.
                                    OR
    how to create a password in abap for a zip file.
    Thanks...
    Vishal
    Edited by: vishal_reddy786 on Jun 22, 2010 7:31 AM

    UNSOLVED

  • HT1766 I have an iphone 4.I upgraded it to 5.0.1 and so I have lost all the data from my iPhone,but i have a backup in my computer.How do I use the backup file ? i.e How will i get that backup file in my iPhone ?

    I have an iphone 4.I upgraded it to 5.0.1 and so I have lost all the data from my iPhone,but i have a backup in my computer.How do I use the backup file ? i.e How will i get that backup file in my iPhone ?

    Connect phone to computer.
    Select Restore.
    Tell iTunes which of the available backup files to use, let iTunes restore it.
    Also, try reading the User's Guide as it answers questions like this.

  • How do I erase the "other" files that are occupying my computer

    I already deleted pics, music, etc and I am ready to continue to delete unnecessary files. How should I erase the "other" files that are in my computer. Please, advice. Thanks

    For information about the Other category in the Storage display, see this support article. If the Storage display seems to be inaccurate, try rebuilding the Spotlight index.
    Empty the Trash if you haven't already done so. If you use iPhoto, empty its internal Trash first:
              iPhoto ▹ Empty Trash
    Do the same in other applications, such as Aperture, that have an internal Trash feature. Then restart the computer. That will temporarily free up some space.
    According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation—not the mythical 10%, 15%, or any other percentage. You also need enough space left over to allow for growth of the data. There is little or no performance advantage to having more available space than the minimum Apple recommends. Available storage space that you'll never use is wasted space.
    See this support article for some simple ways to free up storage space.
    You can more effectively use a tool such as OmniDiskSweeper (ODS) or GrandPerspective (GP) to explore the volume and find out what's taking up the space. You can also delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one. Note that ODS only works with OS X 10.8 or later. If you're running an older OS version, use GP.
    Deleting files inside an iPhoto or Aperture library will corrupt the library. Any changes to a photo library must be made from within the application that created it. The same goes for Mail files.
    Proceed further only if the problem isn't solved by the above steps.
    ODS or GP can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    If you have more than one user account, make sure you're logged in as an administrator. The administrator account is the one that was created automatically when you first set up the computer.
    Install the app you downloaded in the Applications folder as usual. Quit it if it's running.
    Triple-click anywhere in the corresponding line of text below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C:
    sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper
    sudo /Applications/GrandPerspective.app/Contents/MacOS/GrandPerspective
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window by pressing command-V. You'll be prompted for your login password, which won't be displayed when you type it. Type carefully and then press return. You may get a one-time warning to be careful. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator. Ignore any other messages that appear in the Terminal window.
    The application window will open, eventually showing all files in all folders, sorted by size. It may take a few minutes for the app to finish scanning.
    I don't recommend that you make a habit of doing this. Don't delete anything as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means. When in doubt, leave it alone or ask for guidance.
    When you're done with the app, quit it and also quit Terminal.

  • How do I open a Word file which was exported fron PDF?

    how do I open a Word file which was exported from a PDF file?

    Hi alansandy,
    You can find your converted Word file stored in your Acrobat.com account at https://cloud.acrobat.com. You can download your file from your account by selecting it and clicking the Download icon. Then, you can open it right up in Word!
    Best,
    Sara

Maybe you are looking for

  • Getting recovery os media from hp india

    sir,      i am having a hp15-g002ax laptop under warranty.i have accidently deleted my recovery os in recovery partition and also lost the recovery os created with hp event utility.so i would like to order a recovery os(win 8.1 64 bit).so i would lik

  • How i can change tablespace of a table in oracle 8.04

    Dear I want to move tablespace of a table in oracle 8.04 version but it is not working my statement is ALTER TABLE ACCOUNTING_ENTRY MOVE TABLESPACE EDI_TSPACE; and got the following error message: ORA-14004: missing PARTITION keyword how i can change

  • My mac desktop computer won't start and just beebs

    My mac desktop computer won't start it just beens loudly.   I don't have any lights showing on the keyboard but can hear the drive switching on.  I have unplugged the computer, waited and replugged and waited and then turned it on again without and r

  • Mac book vs imac

    hi im new to the forum but very familiar with macs bc of art school. with the holiday rapidly approaching ive decided that its time to get a mac for myself because as a graphic artist using a pc is just too much of a hassle most of the time. my quest

  • Apple Logic Pro Crashing after Apple Security update

    Everytime I try to open up a Logic Project in my 3.0 Ghz Mac Pro Logic will not open and just crashes. This started happening after I updated with the new Apple Security update. Most of the Logic Projects were done when I had the 2.5 Ghz Quad. Not su