Problem with HelpSet in a jar file

In our application, the content of the html-pages of the help
set is not displayed ( the index is ! ) if we put the help set
in a jar file.
Withour using a jar file, it works fine.
The problem appeared with all JavaHelp versions I tried (up to 2.0 beta)
and using JREs >= 1.3.1_0x. Its funny that it works fine with 1.3.1
Capitels in the file names are NOT the problem.
Can anybody help me ?
Do I have to include somethingh in the MANIFEST.MF file of
the jar ? If so, what ?

Check the case of the file names such as map.jhm File names are not case sensitive when in a jar file.

Similar Messages

  • Problem with creation of a jar file from inside a java program

    Hi,
    I am trying to create a jar file at runtime from within a java program.
    I am able to create a jar file just fine using:
    String[] jarArgs = new String[3];
    jarArgs[0] = "cvf";
    jarArgs[1] = "C:\temp\myjar.jar";
    jarArgs[2] = "C:\temp\this";
    sun.tools.jar.Main main1 = new sun.tools.jar.Main(System.out, System.err, "jar");
    main1.run(jarArgs);However, when I look at the jar it puts the absolute path to the files inside such as:
    C:\temp\this\is\my\package\Class.class
    instead of only this\is\my\package\Class.class
    When running the jar command from the command line it works just fine and I have the relative paths in my jar file.
    Does anyone have any experience with this and could help me out?
    Thanks in advance
    Edited by: mruf on Apr 11, 2008 1:51 AM

    Shouldn't jarArgs[2] = "-C C:\temp\this"

  • Problem trying to cataloge a jar file OBPM 10.3.1.0

    Hi,
    I´m having problems when i cataloge a jar file, in OBPM suite 10.3.1.0, it is an itext jar file. I´ve been trying to cataloge older and newer versions of the Itext jar file but there´s no difference in the outcome.
    I create the external resource, but when i try to cataloge the package it doesn´t work
    The message it returns is:
    [Error] Excepción de introspección: Internal Error: java.lang.VerifyError: (class: com/lowagie/text/RectangleReadOnly, method: <init> signature: (Lcom/lowagie/text/Rectangle;)V) Bad access to protected data..
    is there anything i can do to solve this problem?..
    Thanks for your time
    Alfredo Butrón
    Alkimia Consultores

    Hi Dan,
    I´ve done what you told me, i buid a helper class to invoke the iText classes ,and i just cataloge the helper class keeping all the jar files only in the external resource
    When i run my class out of OBPM it works fine, but when i try to invoke my class from OBPM with the same jar classes i use in a external way i get the following message:
         at fuego.component.ExecutionThread.work(ExecutionThread.java:839)
         at fuego.component.ExecutionThread.run(ExecutionThread.java:408)
    Caused by: java.lang.NoSuchMethodError: com.lowagie.text.pdf.PdfWriter.setRgbTransparencyBlending(Z)V
         at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:482)
         at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:381)
    i change the version of iText.jar many times and i get the same message..
    thanks in advance
    ALfredo

  • Problems with multiple idocs in one file ( Inbound file )

    HI,
    Thanks in Advance for your suggestions.. Highly appreciated.
    We have problems with multiple IDocs in one file.
    We are using XIB ( Amtrix ) as Middleware to receive the files.
    Curretenly When the file contains one IDoc then there is no problem. IDoc is created and everything is ok.
    If file contains two IDocs ( for example two messages ORDERS and DELVERY ) then it is creating two IDocs but both IDocs contains ORDERS plus DELIVERY segements information. That is the problem. Some how SAP unable to differentiate the IDocs in the file.. But it knows that how many idocs are there in the file..because it is creating exact number of idocs.
    We are using TRFC port ... Do I need to change it to File port..
    When we have more than one idoc do we need set any parameter in the file ...

    Thanks for the swift response. Always ideas are useful.
    As of now , Middleware cannot split the file.
    Thing is SAP is creating two Idocs with different message types. Problem is First IDoc contains ORDERS message type but also DELIVERY segments as well. Second IDoc with DELIVERY message tyoe but ORDERS segments as well... This is the problem... I think we are missing some field activation in file for EDIDC record.
    As far as I know file port supports the number of IDocs in one file.. Hope TRFC port also supports that

  • Strange problem with linking to external vob-file

    I have a strange problem with linking to external vob-file. I
    have created a link using BudApi:
    on mouseup
    set OK = baOpenFile ( the pathname &
    "Files\General\Video\VTS_01_1.VOB", "normal")
    end
    This code opens mpg-videos correctly, but nothing happens
    when I try to open vob-files with the same code. The strangest
    thing is that when I change the default program for vob-files to
    WinDVD this code works and the file opens, but when I change the
    default program to Nero Showtime this code doesn't do anything
    (when I open the file 'manually' from the folder, it opens
    correctly on Nero Showtime). My client uses Nero Showtime, so I
    really would appreciate any help on this one.

    temes wrote:
    >
    quote:
    Originally posted by:
    Newsgroup User
    >> When using Nero Showtime as a default program, the
    error code is 31,
    >> "There is no application associated with the given
    filename".
    >
    > Which suggests that something has gone wrong with file
    associations.
    > If
    > you double-click one of these files in an Explorer
    window does it fire
    > up Showtime and open the file?
    >
    >
    > Yes, the file opens correctly in Nero Showtime when
    double-clicking
    > it in an Explorer. I tried the file associations and
    created a
    > html-page with a link to the vob-file, and the html-link
    opens the
    > vob-file correcly with Nero Showtime. My client reported
    this
    > problem, so it's not just my computer which is having
    this problem.
    If you open a command prompt, do you get an association
    listed like this
    example for .txt files:
    C:\>assoc .txt
    .txt=txtfile
    C:\>ftype txtfile
    txtfile="D:\Program Files\JGsoft\EditPadLite\EditPadLite.exe"
    "%1"
    Andrew

  • Problem with windows not liking any files named prn

    I recently found a problem with windows not liking any files
    called prn.html, prn.cfm etc etc. If you try and create a file like
    prn.html then it will say "File already exists".
    I initially thought it was a Cold Fusion error as I was
    getting some bizarre error messages when trying to write prn.html
    using cffile.
    Does anyone know a work around for it?

    Hi,
    Not only "prn" but also for the terms like "AUX", "NUL" you
    can't create any directories or files in Windows because these are
    reserved terms with Windows which is meant for some device
    drivers...

  • Problem with CRLF in a EDI file....

    Hello,
    I receive from my client a EDI file with a charcater in the end of the file, for this, the map generate the error Length limit exceeded - no SEG. delim. found!!!, but if I set "on" in the ingnoreCRLF option on the BICMD of Seebubrger, the map works correctly, I try too with the instruction setIgnoreCRLF("on") in the last segment of the EDI and this works too fine.
    But when I deploy the mappings_user.sda with this changes to XI and I receive the file in the BIC Module, the map doesn´t work, generate the same error to the character on the file.
    Can comebody help me please with an idea about this problem??.
    Greetings,
    Hervey

    Check the case of the file names such as map.jhm File names are not case sensitive when in a jar file.

  • Problem with reading text from .DOC files through java and POI

    I have used a jar file "poi-scratchpad-3.2-FINAL-20081019.jar" and "poi-3.2-FINAL.jar" to read text from a .DOC file. I used the "getParagraphText()" function of the class "org.apache.poi.hwpf.extractor.WordExtractor" to get the text.
    I am able to get the text in the .DOC file but along with that i am getting the following messages/warnings
    Current policy properties
    *     thread.thread_num_limited: true*
    *     file.write.state: disabled*
    *     net.connect_ex_dom_list:*
    *     mmc.sess_cab_act.block_unsigned: false*
    *     mmc.sess_cab_act.action: validate*
    *     mmc.sess_pe_act.block_blacklisted: false*
    *     mmc.sess_pe_act.block_invalid: true*
    *     jscan.sess_applet_act.stub_out_blocked_applet: true*
    *     file.destructive.in_list:*
    *     jscan.sess_applet_act.block_all: false*
    *     file.write.in_list:*
    *     file.nondestructive.in_list:*
    *     window.num_limited: true*
    *     file.read.state: disabled*
    *     jscan.session.origin_uri: http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/poi/poi/3.2-FINAL/poi-3.2-FINAL.jar*
    *     file.nondestructive.state: disabled*
    *     jscan.session.user_ipaddr: 10.136.64.153*
    *     net.connect_other: false*
    *     thread.thread_num_max: 8*
    *     file.destructive.ex_list:*
    *     file.nondestructive.ex_list:*
    *     file.write.ex_list:*
    *     jscan.sess_applet_act.sig_invalid: block*
    *     file.read.in_list:*
    *     mmc.sess_cab_act.block_invalid: true*
    *     jscan.session.policyname: TU1DIERlZmF1bHQgUG9saWN5*
    *     mmc.sess_pe_act.action: validate*
    *     thread.threadgroup_create: false*
    *     net.connect_in_dom_list:*
    *     net.bind_enable: false*
    *     jscan.sess_applet_act.sig_trusted: pass*
    *     jscan.session.user_name: 10.166.64.201*
    *     jscan.session.user_hostname:*
    *     file.read.ex_list:*
    *     jscan.sess_applet_act.sig_blacklisted: block*
    *     jscan.session.daemon_protocol: http*
    *     net.connect_src: true*
    *     jscan.sess_applet_act.unsigned: instrument*
    *     mmc.sess_pe_act.block_unsigned: false*
    *     file.destructive.state: disabled*
    *     mmc.sess_cab_act.block_blacklisted: true*
    *     window.num_max: 5*
    Below the above messages/warnings the data is getting printed. Only the text part of the data is retrieved not the fonts, styles and bullets etc.
    Can anyone explain me why I am getting above warnings and how can I remove them. Is it possible to fetch the text depending on delimiters.
    Thanks in advance,
    Tiijnar
    Edited by: tiijnar on May 21, 2009 2:45 AM

    The jar files which were used are downloaded from http://jarfinder.com. Those jars created the problem of displaying those messages on console. I downloaded APIs from apache.org and used them in my application. Now my application is running good.
    Tiijnar

  • Problem in bundling gifs in jar file.

    Hello all,
    I am having following package structure.
    /* For example */
    com.course.explorer;
    com.course.explorer.toolbar;
    and an image directory having all images in
    com/course/explorer/images
    Now to associate an ImageIcon with a button in toolbar package.
    /* for example */
    code from NewCourseBut.java present in com.course.explorer.toolbar package.
    ImageIcon img = new ImageIcon(
    getClass().getResource("../images/new_course.gif"));
    Now my problem is when I am trying to run a jar file (containing all my code+images) it throws NullPointerException.( Unable to find the image new_course.gif)
    I am not able to understand wher I am going wrong.
    Can anyone please help me out in finding my fault.
    Smiles,

    Hello All,
    Is there any standard way of incorporating gifs in an Jar file.
    Consider that one is extracting an ImageIcon for a Toolbar button and for the same the gifs is present in an "images" directory.
    I did tried alot of permutation & combinations still no luck.
    How one need to proceed for same ?
    Any guidance is welcome.
    Smiles,

  • Problem with Identifying images in JAR

    Hi,
    I am using Eclipse as JAVA IDE. I have a project X with a folder called images. which contains all the image files. In my classes I am refering to the images as <b>images/x.gif</b< (say). It works fine when I run it as a stand alone application. Now I want to export this as JAR when I do that and try running it using <b>java -jar X.jar</b>. It says its not able to find the file <b>x.gif</b>. Why is this happening and how do I over come this problem. Another question. I have a manifest file in which I have specified my Main Class. And an additional jar that its reffering to. Why was not there a mechanism for specfying that if in the manifest file. If you are refering to gifs in the application. Hope somebody could help me out.
    With Regards
    Tom

    You need to load images from JAR files this way:
    ClassLoader cl = cl = this.getClass().getClassLoader();
    Image im = cl.getResource("images/"+filename)This code will also work in your eclipse project if the files are located in /images/ in the project folder. Of course, they will have to be added to the jar in the same folder.
    - bjorn

  • Parsing XML with DTD residing in jar file

    Hi,
    I have problems using crimson parser for my program under JDK 1.4.0b2. It attempts to parse an xml file with SAX. The corresponding lies in a jar file in a different directory but reachable through the classpath. All I get is an exception.
    org.xml.sax.SAXParseException: Relative URI "my.dtd"; kann nicht ohne eine Dokument-URI aufgel�st werden.
    at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3121)
    at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3115)
    at org.apache.crimson.parser.Parser2.resolveURI(Parser2.java:2702)
    at org.apache.crimson.parser.Parser2.maybeExternalID(Parser2.java:2674)
    at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1125)
    at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:489)
    at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
    at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
    at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:326)
    I used Xerces before and it worked fine. I already searched the community for that problem. All hints I found assume that xml file and dtd are in the same directory. Setting the systemId of the input source doesn't fix the problem.
    Is there anyone out there knowing what to do?
    Thanks,
    Thorsten

    Use a Resolver to map a PUBLIC name to a local name:
    <!DOCTYPE DOC PUBLIC "-//gaskin.de//XMLDOC 1.0//EN"
    "http://www.gaskin.de/dtd/xmldoc.dtd">
    public static register() {
       ClassLoader loader = Resolver.class.getClassLoader();
       registerCatalogEntry(
          "-//gaskin.de//XMLDOC 1.0//EN",
          "de/gaskin/resources/dtd/XMLDOC.DTD",
          loader);
    }

  • Deployment problems when using several ejb-jar files

    Hello All,
    I am having problems with deployment of my J2EE application. My EAR file has several EJB-JARs, one for each entity bean. However I refer to the other EJBs in one EJB. Hence I included the <ejb-ref> element in the deployment descriptor of the entity bean. But I am getting the deployment error that "the bundle does not contain the bean name". I tried to change the <ejb-name> value (within the <ejb-ref> element) to the JNDI name of the EJB I am referring to, and also added the <ejb-link> tag specifying the location of the JAR file that has the EJB. None of the attempts worked.
    Can someone help me out on how I am supposed to go about when I have several ejb-jar files as opposed to a single one? I am deploying my app on Sun ONE AS 7.0.
    Thank you,
    PS: I am posting this message on several forum topics. Please disregard this message if you have seen/answered this message. Thanks.

    Hi ,
    It would help if you could post the relevant snippets of your
    ejb-jar.xml. In general, you definitely shouldn't use jndi-name
    for any of the linking information. jndi-name is not part of the
    standard deployment descriptor. The syntax for the ejb-link is
    [ejb-jar uri]#ejb-name
    K

  • Deploying an application with existing library as jar file created with ANT

    Hello All,
    I am having some trouble with a web application I am deploying to Tomcat. I have an custom library that works perfectly as a jar file included in the lib directory if I include all the jars that that library depends on into the lib directory also. What I would like to do is bundle the required jar files into my libraries jar file, but it failes to work when I do that.
    Any thoughts? Does Tomcat prevent this?
    I am using ANT to create my jar file, but when I look at the contents of my jar file it includes all the requested directories.
    My build.xml looks like this:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <project name="myapp" basedir="." default="jar">
    <property name="classes.dir" value="./classes"/>
    <property name="jar.dir" value="."/>
    <property name="java_lib.dir" value="../../../../../Program Files/Java/lib"/>
    <target name="jar">
    <jar destfile="${jar.dir}/${ant.project.name}.jar">
    <fileset dir="classes"/>
    <fileset dir="${java_lib.dir}" includes="jai_codec.jar.jar"/>
    <fileset dir="${java_lib.dir}" includes="xercesImpl.jar"/>
    <fileset dir="${java_lib.dir}" includes="mysql-connector-java-3.1.8-bin.jar"/>
    <fileset dir="${java_lib.dir}" includes="xmlParserAPIs.jar"/>
    <fileset dir="${java_lib.dir}" includes="mlibwrapper_jai.jar"/>
    <fileset dir="${java_lib.dir}" includes="xml-apis.jar"/>
    <fileset dir="${java_lib.dir}" includes="jai_core.jar"/>
    </jar>
    </target>
    <target name="run" depends="jar">
    <java jar="${jar.dir}/${ant.project.name}.jar" fork="true"/>
    </target>
    <target name="clean-build" depends="jar"/>
    <target name="main" depends="run"/>
    </project>
    Like I said...it includes these jar files in my jar file, but will not function properly with my tomcat app. If I exclude these jar files and include them seperately then everything works.
    NOTE: I do not access any of these libraries directly from any servlets, only from my classes.
    Thanks,
    J-Rod

    This probably isn't posted on the correct forum. This JVM forum is for discussing issues related to running java in an Oracle database using the OJVM, Oracle's embedded java VM. Possibly you are trying to use OJVM through JDEV but that isn't clear from your post and I don't believe that the error you are reporting would occur in that case. If it did or if you are in fact trying to run client java via JDEV the problem would be a JDEV rather than OJVM issue and so the JDEV forum,
    JDeveloper and ADF
    is the correct one to use.

  • Problems with spaces in directory or file names and Word.exe

    Hi
    I'm trying to open a file with Word from my java aplication, and I have a problem with some file/directory names.
    I have this
    String cmd = "c:\\Program Files\\Microsoft Office\\Office10\\WINWORD.EXE" + " " + path;
    try {
    Runtime.getRuntime().exec(cmd);
    } catch (Exception errorea){ }
    Here is what happens:
    if path is something like this: "c:\people\info.doc" , there's no problem, Word opens the document, but if path contains blank spaces somewhere, it doesn't work. For example:
    path = "c:\Documents and Settings\info.doc"
    path = "c:\Hi everybody\info.doc"
    path = "c:\tests\test results.doc"
    with the above examples it doesn't work :( Word tries to open "c:\Documents", "c:\Hi" or "c:\tests\test".
    Can anyone help? thanx a lot ! : )

    No, the exec method runs the Word.weird, it shouldn't, and it wouldn't on my system going by the test I just made, but I'm running linux & not windows, maybe the command line parsing is different for some reason.
    The problem is that
    Word starts and then Word says that it can't open the
    file because the name or the path to the file is not
    valid.You still should use the overload that takes a String array.

  • Problem with importing saved .json backup file in fresh installed firefox 3.6.8? Message "unable to process the backup file", when i choosed option "Restore" from menu "organize your bookmarks" !?

    Hello,
    my problem is with importing saved .json backup file in fresh installed firefox 3.6.8? Message "unable to process the backup file", when i choosed option "Restore" from menu "organize your bookmarks" !?
    Normally that i followed all instructions from your support site, and that i tried many things, but nothing helped :( !?
    my .json file isn't corrupted cause it was saved on another partition before formatting my OS.
    Please don't tell me that my bookmarks are lost :( cause i had many important things in that bookmarks, on 100.s pages :( ....
    Thanks in advance!
    Sincerely,
    hoho33

    "
    Can you restore that JSON backup in a new profile?
    Did you make sure that it is really a JSON backup and that there is no missing or hidden other file extension?
    A JSON backup starts with: {"title":"","id":1,"dateAdded"
    A HTML backup starts with: <!DOCTYPE NETSCAPE-Bookmark-file-1>
    You can try if you can restore that JSON backup in a new profile.
    Create a new profile as a test to check if your current profile is causing the problems
    See Basic Troubleshooting: Make a new profile
    If that new profile works then you can transfer some files from the old profile to that new profile (be careful not to copy corrupted files)
    See http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    Please for administration of this support site, make possibility to quote someone's answer, on this way is dificult to answer somebody who wrote some suggestion!
    No, i can't restore JSON backup in new profile, even on fresh installed OS XP SP3, with fresh installation of latest version of firefox!
    MAN I TOLD YOU 10X IT'S 200 % JSON BACKUP FILE!!! I'M NOT IN IT FROM YESTERDAY, I WORK IN IT 12 YEARS!!!
    I tried restoring json backup in new profile, but nothing, i couldn't restore, cause that stupid error from screen shot which i posted again appears !
    Man i'm not totally noob i repeat 2nd time here, and normally that i know to create new profile, and that i tried that, but that didn't help!
    I can't believe that FIREFOX has not good support team, and doesn't care for yours users, this will not give me more reason to use in future firefox
    like borwser, if i don't have good support, and when i have problem like this, to loose all my very important bookmarks and passwords on them, and
    firefox support won't to help me to solve my problem!
    If somebody from firefox support team read this, i can give you Remote desktop access to my computer to try solve this problem, like other serious company
    like HP, Dell , etc. give remote desktop support to their users!
    Corel are you from firefox support team? Please don't write same suggestions, cause i know to read, and i understand well if you write once some suggestion!
    Greetzz

Maybe you are looking for