Format for Helpset file URL

I'm running on windows Windows XP.
I'm new to Javahelp and I downloaded a simple demo app (source at the end of this post).
I set up an Eclipse project and got the sample to compile fine.
I placed the help files in the parent of the folder where my compiled class resides. I started
the app and the help viewer displayed just fine.
I then moved the help files to another location, and changed the URL to point to the new location as follows:
URL url = HelpSet.findHelpSet(cl, "file://D:/D_ProgramFiles/JavaHelp/MyStuff/jhelpset.hs");This time a null pointer exception occurred and my debugger showed the "url" variable to be null.
I also tried the following with no success:
URL url = HelpSet.findHelpSet(cl, "file://localhost/D|/D_ProgramFiles/JavaHelp/MyStuff/jhelpset.hs");
URL url = HelpSet.findHelpSet(cl, "file:///D|/D_ProgramFiles/JavaHelp/MyStuff/jhelpset.hs");
URL url = HelpSet.findHelpSet(cl, "file://localhost/D:/D_ProgramFiles/JavaHelp/MyStuff/jhelpset.hs");
URL url = HelpSet.findHelpSet(cl, "file:///D:/D_ProgramFiles/JavaHelp/MyStuff/jhelpset.hs");What format should i use?
Thanks.
Sample App:
import javax.help.*;
import java.net.URL;
import javax.swing.*;
public class JavaHelpTest {
   public static void main(String args[]) {
      JHelp helpViewer = null;
      try {
         // Get the classloader of this class.
           ClassLoader cl = JavaHelpTest.class.getClassLoader();
         // Use the findHelpSet method of HelpSet to create a URL referencing the helpset file.
         // Note that in this example the location of the helpset is implied as being in the same
         // directory as the program by specifying "jhelpset.hs" without any directory prefix,
         // this should be adjusted to suit the implementation.
           URL url = HelpSet.findHelpSet(cl, "jhelpset.hs");
         // Create a new JHelp object with a new HelpSet.
         helpViewer = new JHelp(new HelpSet(cl, url));
         // Set the initial entry point in the table of contents.
         helpViewer.setCurrentID("Simple.Introduction");
        } catch (Exception e) {
           System.err.println("API Help Set not found");
      // Create a new frame.
      JFrame frame = new JFrame();
      // Set it's size.
      frame.setSize(500,500);
      // Add the created helpViewer to it.
      frame.getContentPane().add(helpViewer);
      // Set a default close operation.
      frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
      // Make the frame visible.
      frame.setVisible(true);
}

Luca-Sanna,
Thanks for this help. My setup and probably my post are a little confusing. The helpset is on my D drive in this location:
D:\D_ProgramFiles\JavaHelp\MyStuffI changed the value of the second parameter to findHelpSet to:
"D:/D_ProgramFiles/JavaHelp/MyStuff/jhelpset.hs" But this did not work.
I placed the helpset files in the same directory as the compiled class and changed the parameter to:
"helptest/jhelpset.hs"where helptest is the package name and the viewer loaded fine.
However when it comes to a real application and help files, putting the help files in the same location as the compiled class files is probably not the best technique. I'll have other questions at that time I'm sure.
It still would be good to know why the first path I indicated above did not work.
Thanks.

Similar Messages

  • Is there a format for a file that I can use for attaching a one page document with photos embedded that will open in everyone's email automatically?   I've tried PDF and Word, but worked only in Mail.  Lost formatting when just copied and pasted in email.

    Is there a format for a file that I can use for attaching a one page document with photos embedded that will open in everyone's email automatically?   I've tried PDF and Word, but PDF worked only in Mail.  Word worked in nothing.  I also tried copying and pasting the document but lost all formatting when just copied and pasted in email.  Is there a way to do this?

    Are you sure PDF won't work? It should as what you're trying to do is pretty much what it is designed for (PDF - Portable Document Format). On a Mac anywone who receives the file should be able to see it in all its page layout glory by using the app Preview or Adobe Reader. Same on a PC, the file should be viewable as a PDF file using Adobe Reader and probably some other viewer (don't use PCs so not sure what other apps).
    What application are you creating the file in and are you sure you're exporting it correctly in PDF format, fonts and images embedded?

  • How do I change the default file format for saving files in Preview

    I often take screen clips and save them as files to my desktop, then upload them to my website or include them in emails. The default file format for Preview seems to be TIFF, but I'd prefer jpg. How do I convince Preview to use jpg as the default file format?
    TIA,
    Thad

    I should have been a little clearer...
    If I'm emailing a screen-clip, I can just paste it right into the email, but I post on a lot of discussion boards and it's often nice to be able to include a screen shot in those. My preferred way to do that is to post the clip at my personal website and then put a link in the post. It gives me the ability to delete the image whenever I want (a plus for any security freak) and it works on every discussion board I know. Some boards allow attachments, some don't. Plus I don't want to have to remember different d/b file attachment procedures. Anyway, when I make a screen-clip, I need to temporarily save it (usually to my desktop), then ftp it to my website. I use Preview to do that. It's simple. But I'd like it to default to .jpg instead of .png or .tiff. (FWIW, I just tried it and the default was .png, but I swear I did something similar earlier that defaulted to .tiff when I first tried to save the newly-created file).

  • How can I know the encoding format for a file.

    I have files encoded in English, Spanish, Japanese etc. I want to know which file has which encoding format while reading.
    Can anyone suggest.
    Ashish

    Language is different from "encoding"...if you mean character encoding. Multiple languages can be represented by a single encoding. The fact that you mix language and encoding in your question confuses me about what you are asking.
    If you want to know what language a file uses, you can always use a meta-tag. Or you can do some kind of text analysis based on dictionary lookups to determine language...too complex for my tastes. I think a simple language tag in the file makes more sense.
    As for character encoding, you either standardize on a single encoding for all files or again use a meta-tag. If you standardize on a single encoding, you should probably consider one of the Unicode encodings instead of any other character set encoding.
    Regards,
    John O'Conner

  • Problem in using different format for Image files

    We are generating a report wherein the logo (Image File) is changed with respect to the company's location.
    Here, we are making use of a Text field using a formula column as its source for getting the file path.
    When the Size is kept as "Expand" or "Variable", then, when the image size changes considerably, it gives problem, wherein the logo is not displayed.
    Then we increased the size of the logo field and kept thte size type as Fixed. But the probnlem which we face is because of the .bmp format which the report accepts.
    This is because, when the format type is bmp, upon increasing the resolution or size of the bmp increases the size by several folds( say from 70kb to almost 1000 or 1500kb) which leads to the error "Memory cannot be read" and leads to abrupt application termination.
    Is their any way by which i can make use of GIF format for the image file and at the same time change the file name at runtime.
    Eagarly waiting for an early solution.
    Thanking you in Advance,
    Ramnath Balasubramanian

    Hi,
    You can only use one Apple ID with iTunes match. Purchasing another match subscription using wife's Apple ID is not a solution. I can only suggest that you use your ID for match and all iTunes music purchases.
    Jim

  • Denmark PBS(Nets) Leverandu00F8rservice format for payment file

    Hi,
    Does anybody know how to produce the PBS(Nets) Leverandørservice format for direct debit file? Using print program RFFODK_B I am able only to produce Betalingsservice formats (outgoing payment and direct debit).
    Thanks for your help,
    Janez

    Hi, you have use TC DMEE and create your own file from the beginning.
    The layout can be found on the homepage of Nets - http://www.pbs.dk/en/products/leverandoerservice/guidelines-terms-and-conditions/Pages/guidelines.aspx
    The old programs can't be used anymore.
    BR
    René V. Nielsen

  • Common URL format for sharing file paths between Mac and Windows?

    Hi -
    I have to integrate several Macs into a Windows environment. We need to be able to copy and paste file paths to share between all machines. Is there a common URL format that can be used between the platforms?
    On Windows, I have:
    \\server\share\file
    On the Mac:
    smb://server/share/file
    Thank you for your help,
    Steve

    On Windows you have what is known as a "UNC".
    On the Mac, you have a "URL". It starts with the protocol to use "smb" then gives the path to the item using standard conventions.
    UNC is Microsoft mainly.
    The only way I know for Windows to use a URL is with an application like a web browser or ftp client.
    On the Mac, you can use UNCs but they must be modified as follows.
    In Terminal:
    smbclient \\\\servername\\sharename\\filename -U username
    And enter a password if prompted.
    Notice that you must double up the slashes. This is due to how UNIX shells treat the backslash.
    You will connect to the share, but it will only be in Terminal.

  • Need the format for input file for standard program

    hi can any one please give me the format in which the file to be uploaded to program RFBIBL00 ,
    must be in for example my excel file to be uploaded has the following columns.
    company code
    accounting doc
    line item
    fiscal year
    doc type
    doc date
    so is there any program which can create a file in the format to be uploaded taking this excel sheet.
    i read the documentation but i am little confused about that.
    thank you.

    Ok.. I have created one small test program for RFBIBL00.
    That program uses this file format:
    indicator     company code      fiscal year      doc type      doc date     positng date     header text     Account     posting key      amount      item text      assignment number ....
    H     0001     2007     SA     11/21/2007     11/21/2007     Test from RFBIBL00                         
    D                                   106210     40     123.3     Line 1     
    D                                   106210     50     123.3     Line 2     
    H     0001     2007     SA     11/21/2007     11/21/2007     Test from RFBIBL00                         
    D                                   106210     40     123.3     Line 1     
    D                                   106210     50     123.3     Line 2     
    Copy this data into one notepad and save it as .txt file. you need to provide this path to the test program.
    The source code of the program (Currently it is only test version):
    *& Report  ZTEST_NP_RFBIBL00
    REPORT  ZTEST_NP_RFBIBL00.
    TABLES:  BGR00,                        " Batch-Input Mappendaten
             BBKPF,                        " Batch-Input Tcode + Belegkopf
             BBSEG,                        " Batch-Input Belegsegment
             BBTAX,                        " Batch-Input Belegsteuern
             BSELK,                        " Batch-Input Selektionskopf
             BSELP.                        " Batch-Input Sel.positionen
    DATA: BEGIN OF IT_FILE OCCURS 0,
          IND,
          BUKRS(4),
          GJAHR(4),
          BLART(2),
          BLDAT(10),
          BUDAT(10),
          BKTXT(25),
          HKONT(10),
          BSCHL(2),
          DMBTR(17),
          SGTXT(30),
          ZUONR(17),
          END   OF IT_FILE.
    DATA:    C_NODATA(1)  TYPE C VALUE '/'.   " NODATA
    SELECTION-SCREEN: BEGIN OF BLOCK BLK1 WITH FRAME TITLE TEXT-T01.
    PARAMETERS:       P_LFILE TYPE CHAR70 OBLIGATORY,
                      DS_NAME TYPE CHAR70 OBLIGATORY LOWER CASE,  "< Server file
                      GR_NAME(12) TYPE C DEFAULT 'FI_TEST'.
    SELECTION-SCREEN: END   OF BLOCK BLK1.
    START-OF-SELECTION.
      PERFORM UPLOAD_DATA.
      OPEN DATASET DS_NAME FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
      PERFORM INIT_STRUKTUREN_ERZEUGEN(RFBIBLI0) USING C_NODATA.
      PERFORM SET_DATA.
      CLOSE DATASET DS_NAME.
      PERFORM SUBMIT_RFBIBL00.
    *&      Form  upload_data
    FORM UPLOAD_DATA .
      DATA: L_FILE TYPE RLGRAP-FILENAME.
      L_FILE = P_LFILE.
      CALL FUNCTION 'WS_UPLOAD'
        EXPORTING
          FILENAME                      = L_FILE
          FILETYPE                      = 'DAT'
    *    HAS_FIELD_SEPARATOR           = ','
        TABLES
          DATA_TAB                      = IT_FILE
      IF SY-SUBRC <> 0.
        MESSAGE S398(00) WITH 'Error while uploading'.
        LEAVE LIST-PROCESSING.
      ENDIF.
    ENDFORM.                    " upload_data
    *&      Form  set_data
    FORM SET_DATA .
      PERFORM SET_BGR00.
      LOOP AT IT_FILE.
        CASE IT_FILE-IND.
          WHEN 'H'.
            PERFORM SET_BBKPF.
          WHEN 'D'.
            PERFORM SET_BBSEG.
        ENDCASE.
      ENDLOOP.
    ENDFORM.                    " set_data
    *&      Form  set_BGR00
    FORM SET_BGR00 .
      PERFORM INIT_BGR00(RFBIBLI0) USING BGR00.
      BGR00-MANDT = SY-MANDT.
      BGR00-GROUP = GR_NAME.
      BGR00-USNAM  = SY-UNAME.
      BGR00-NODATA = C_NODATA.
      TRANSFER BGR00 TO DS_NAME.
    ENDFORM.                                                    " set_BGR00
    *&      Form  set_bbkpf
    FORM SET_BBKPF .
      PERFORM INIT_BBKPF(RFBIBLI0) USING BBKPF.
      BBKPF-TCODE     = 'FB01'.
      BBKPF-BLART     = IT_FILE-BLART.
      BBKPF-BUKRS     = IT_FILE-BUKRS.
      BBKPF-BLDAT+0(6) = IT_FILE-BLDAT+0(6).
      BBKPF-BLDAT+6(2) = IT_FILE-BLDAT+8(2).
      BBKPF-BUDAT+0(6) = IT_FILE-BUDAT+0(6).
      BBKPF-BUDAT+6(2) = IT_FILE-BUDAT+8(2).
      TRANSFER BBKPF TO DS_NAME.
    ENDFORM.                    " set_bbkpf
    *&      Form  set_bbseg
    FORM SET_BBSEG .
      PERFORM INIT_BBSEG(RFBIBLI0) USING BBSEG.
      BBSEG-NEWKO = IT_FILE-HKONT.
      BBSEG-NEWBS = IT_FILE-BSCHL.
      BBSEG-WRBTR = IT_FILE-DMBTR.
      BBSEG-SGTXT = IT_FILE-SGTXT.
      TRANSFER BBSEG TO DS_NAME.
    ENDFORM.                    " set_bbseg
    *&      Form  submit_rfbibl00
    FORM SUBMIT_RFBIBL00 .
      SUBMIT RFBIBL00 WITH DS_NAME = DS_NAME
                      WITH CALLMODE = 'B'
                      WITH XLOG = 'X'
                      AND RETURN.
    ENDFORM.                    " submit_rfbibl00
    If you have any problem getting file, send me an e-mail (my id is on my business card) I will send you the file as a attachment
    Regards,
    Naimesh Patel

  • Configuring paymt med format for GDFF file

    Hi,
    I have a requirement to have a delimiter on the file to be '@', so I have set '@' as delimiter for segment groups, segments and composites on the format attributes. However, for the level 2 sort (Invoice details) the record should end with a delimiter '.' to say it is end of that invoice record. Next invoice for the same vendor continues in next record as shown below.
    I tried many different ways, but it always puts a '@' for invoice record (at the end), as I have set delimiter '@' for seg group, segment and composites on the format attributes.
    Have anyone encountered this issue? How do we accomplish this?
    Thanks,
    Kumar
    DD@IN@8429324@[email protected]@@20080228@340045603@@@@@@@@@@@@NAM 530013@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@CITI02@3@CITIBA@@@@P@@@@@@@@@@@@@@@@@@
    INV@Invoice-Number  Inv.-Date  Invoice - Amount Paid                     .
    INV@1001113          28.10.07              320000.00                     .
    INV@1001114          28.10.07              360000.00                     .
    INV@TAVERA/006/07    01.01.08               40000.00                     .
    INV@INNOVA/005/07    01.01.08               40000.00                     .
    INV@UATBK            27.02.08              587640.00                     .
    INV@INNOVA/004/07    26.11.07               40000.00                     .
    INV@TAVERA/005/07    26.11.07               40000.00                     .
    DFT@IN@8429324@[email protected]@@20080228@3404500005@@@@@@@@@@@@ABC WOOD WORKS@@@@01@24681357@@@@@@CPCOTH@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@00000000@@@@@@@@@@@@@@@@@@
    INV@Invoice-Number  Inv.-Date  Invoice - Amount Paid                     .
    INV@04012008         04.01.08               99150.00                     .
    INV@04012008-2       04.01.08               29235.00                     .

    Include a new field in the Level 2 segment at the end as a constant with the value '.'  Then in the segment level properties, choose 'Define different settings for this segment' in the 'Node Info' Tab for 'End of Segment' frame and enable CR/LF, instead of 'Copy settings from format header'.
    This should work irrespective of what you have defined in your Format Attributes.
    Ravi.

  • Correct Format For Movie File

    Hello,
    I am in the process of transferring old family film footage to digital files. The company I'm taking these reels to is recommending that I put them on an external hard drive in .mov format. They say that this will allow me to edit with iMovie. Your thoughts?
    Also, at the present time when I upload my point and shoot Nikon camera and also when I upload my iPhone and iPad, the movie clips are loaded into iPhoto also along with the photos. Will I have the option to do this with these new files?
    Regards,
    Tom

    You would need to consult the documentaion for the device you're using. You should be able to find it on the manufacturer's website.

  • Best format for help file

    I am creating only my second modest help file ever. We will
    be distributing via CD as a demo of our product utilizing
    programming to launch the help file upon insertion of cd. What is
    the best format (I have it in WehHelp now)? Also any
    demo's/guidelines/topics that might be useful in formatting
    different topics to add interest and force the user thru the
    screens in a specific order. Maybe the whole thing can initially be
    "self-running"? I follow instructions well but have limited
    knowledge at this stage.

    Hello patdod -
    Need more info.
    Is this for Linux, Mac, Windows, Unix, or cross-platform?
    Does this go to government customers / government suppliers?
    If so, your customer(s) may not be permitted to use some file
    formats (such as Flash / Shockwave, video or audio files, etc.).
    Regards,
    GEWB

  • HT5093 What is the file format for 3d files?

    Recently I have downloaded Autofesk Inventor Fusion. I created some 3D models there. Now i want to insert it into iBooks Author. But i cannot find what file format I can use?

    Collada DAE is the way to go.
    The best way to start off is to export a simple box in the center of the world.
    If that works, then apply a texture / transparency etc, one step at a time and and test at each single step.
    Different exporters will have different levels of support for various features ( for 3DS Max, the in-built exporter was very limited ).
    If your software doesnt have a DAE exporter, but can export to eg FBX, there are free converters for FBX to DAE.  The more steps in your chain to get 3D from your modeller onto the iPad, the more problems you may run into - also there is the time required for running those additional steps.

  • Font formatting for Flat file generated in PI

    Hi,
    We have a File receiver scenario in PI wherein  we are generating a Flat file. While creating the file, the font needs to be of specific font type and size
    eg:
    Pyramid u2013 Lucida Console (Size 10)
    Aspheria u2013 I5_10N (Size 10)
    Is there any way this can be configured or implemented in PI?

    Hi ,
    This requirement we can achieve using XSLT Mapping,we can define the font size in mapping program it self,select output method in xslt program as TEXT,no need of any file content conversion in Receiver Communication channel.
    refer this link how to uses the methods for font sizes.
    http://www.xml.com/pub/a/2001/01/24/xsl-fo/
    Regards,
    Raj

  • What is the best HD output format for .MTS files?

    Hi guys,
    I'm in trouble with .MTS files taken from a Sony videocam.
    Everything works and I get my final movie in mpeg2 (or H.264) Blu-ray and the final BDisk looks pretty.
    But a friend of mine has edited some of these clips with Sony Vegas and his video is more definited than mine.
    I tried in many ways to change some output settings like "same as source HD" or changing bitrates, GOP, VBR (single or double) in HD 1080i setting (yes, the clips are interlaced)........... but my final results are everytime less definited than Sony does with just a (bloody) default setting.
    Any idea to improve the output quality of these files?
    Thanks in advance
    Giorgio

    Hi Bill,
    nice to hear you.
    Unfortunately these tips have not given me an help.
    My way of doing is:
    Check the input files (format, interlaced or progressive, bitrate, framerate, fields, pixel, extension name etc.....) with MediaInfo.
    Open the proper Premiere project (in this case AVCHD 1080i square pixel)
    Edit and output using Mpeg2 Blu-ray  or H.264 Blu-ray using the best settings I can..
    In this case I've tried ALSO to output a movie as much as possible similar to the input format, looking at the GOP also (premiere gives as default  M3 N15, but the source is M2 N13): no way indeed!!!!
    My fear is that Pr doesn't hold .MTS files properly as Vegas does.
    Strange: Vegas is a Sony product as the videocam I've taken the files from.
    I hope I'm doing something wrong but I'm afraid I had to edit this files with Vegas.
    Tell me I'm wrong, please
    Giorgio

  • Nokia 6600 unknown file format for mp3 files

    when i try to open my mp3 files it just says unknown file format and wont let me open the file,how can i fix this problem?

    please mention the phone model number, the type of file which you are trying to open on the phone & the problem you are facing in more detail.
    Please mark the post as solution if it solves your problem.
    Current Device - Nokia Lumia 1020/920

Maybe you are looking for

  • My iPod won't import all the songs on iTunes

    My iPod Classic won't import all the songs in iTunes. Any ideas?

  • Compiz was working but not anymore :( RADEON X1600

    hi...im an arch novice.  I just switched from ubuntu over the weekend and im trying to get compiz fusion to work correctly with my Radeon X1600 graphics card. I installed latest ati-dri package using pacman and i eventually got compiz running with th

  • Anybody having icloud server problems today? No incoming mail

    I haven't received any emails for the past 16 hours.  I see from earlier posts in September this was an apple server problem.  Does anyone know anything more?  Any solutions?  Thanks in advance.

  • Lost phone characters after transfer

    Hi, I use latest version of the pc-suite and a E70. When I transfer my outlook contact to my phone, I lost the "plus sign" for all my phone numbers ... All my phone numbers are encoded using that (international codification for to make international

  • Successive run - Event Structure

    Hello... I have a simple question. Sometimes we want to use Event Structure and put only a piece of the code in each case. The problem is that a case might have only math code, without any control, indicator or array. Because of this, this case will