Skip to main content

display from a JAR file

2 replies [Last post]
mgray
Offline
Joined: 2006-02-17

I have a help JavaHelp system that works if the maps and HTML pages are on the class path in a directory, but not when they are on the path in a JAR. When referenced from a jar, everything appears OK, but the HTML pages are not displayed.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
mgray
Offline
Joined: 2006-02-17

I found the problem - under some (unknown) circumstances, the map does not correclty follow URL's with uppercase characters in the path. This does not always happen - I have been successfully using a jar with html pages under the path "CoreFireDebugHelp". When I moved this jar to a deeper path in my product distribution tree, it stopped working. It started working again when I took out the capitals in the path name, and in the map references. This is definitely an error in the URL following code.

Roger Brinkley

> I have a help JavaHelp system that works if the maps and HTML pages
> are on the class path in a directory, but not when they are on the
> path in a JAR. When referenced from a jar, everything appears OK, but
> the HTML pages are not displayed.

Sounds like an indirect reference problem in the map files. You're
probably have an incorrect level of indirection for the files. Make sure
that the files are referenced relative to the helpset file. See the
demos for examples.

Binky

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.