Skip to main content

Crosslinking between JAR-files

1 reply [Last post]
Anonymous

Ok, here is another problem I have come up with:

I have 4 JAR files where A.jar is the "Master" and depending on installation
choices JAR-files B,C and D is included dynamically.

That works (exceept that search only search in A.jar contents?!Previous
support question here from me, still not solved)

The JAR-files are in an old folder like:

/A
/B
/C
/D

so a reference from A to B should be like "../b"

But if there is a cross-link from e.g. B.jar to A.jar it does not work?
Why?

I have checked the HTM-file and the link is correct A link which works when I browse the
files Un-JAR:ed so to speak...

So why does it not work to link from a file in a JAR-file to another file in
another JAR-file?

Thank you!

Per L.

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

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.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Roger Brinkley

Per Lundkvist wrote:
> Ok, here is another problem I have come up with:
>
> I have 4 JAR files where A.jar is the "Master" and depending on installation
> choices JAR-files B,C and D is included dynamically.
>
> That works (exceept that search only search in A.jar contents?!Previous
> support question here from me, still not solved)

Go back to the response I gave you previously which outlined steps to
resolve and report back on the results.

> The JAR-files are in an old folder like:
>
> /A
> /B
> /C
> /D
>
> so a reference from A to B should be like "../b"
>
> But if there is a cross-link from e.g. B.jar to A.jar it does not work?
> Why?
>
> I have checked the HTM-file and the link is correct > href="../folderA/file_in_A.htm">A link which works when I browse the
> files Un-JAR:ed so to speak...
>
>
> So why does it not work to link from a file in a JAR-file to another file in
> another JAR-file?

Because you can't go any higher than the jar file. Actually you can't go
any higher than what is specfied on the CLASSPATH. It works when
unjarred because you probably specified the directory containing A,B,C,D
on the CLASSPATH. If you had specfied A,B,C,D individual it wouldn't
have worked either.

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.