xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "michael sorens" <msor...@myrealbox.com>
Subject Re: xerces path problem
Date Thu, 20 Jan 2005 16:39:53 GMT
Well, it turns out you're right. When I extracted the zip contents I selectively grabbed what
I thought were all the jar files but I missed the xerces file that was in there. In the meantime,
I also figured out how to use the Main class with the -cp option. A useful piece of knowledge
I gained from your guidance was that a jar file's manifest specifies additional jars to load.

One more question, if you have time:
I found a Sun doc page that describes the class loading precedence starting with rt.jar then
jre/ext then classpath. This page seemed to be from Java 1.2 so I'm wondering if it is current.
Also I found another page on the jre/endorsed directory, which was not listed on the first
page in the order of precedence at all. The first page also did not mention loading from the
jar manifest file. So is there a comprehensive source that lists class loading precedence?

On Wed, 19 Jan 2005 12:58:43 -0500, Thomas DeWeese <Thomas.DeWeese@Kodak.com> wrote:

> Hi Michael,
>      What happens if you download a fresh copy of the binary
> distribution:
>      http://www.apache.org/dist/xml/batik/batik-1.5.1.zip
> unzip it:
>     unzip batik-1.5.1.zip
> cd into the created directory:
>     cd batik-1.5.1
> and run the exec as the rasterizier pages suggests:
>      java -jar batik-rasterizer.jar samples/batikFX.svg
> Don't move anything around, don't try and replace xerces just
> run the distribution as given.  Does that work?
> I will be very surprised if it doesn't.
> I'm 99% certain that the problem you are experiencing is
> caused by swapping the Xerces library incorrectly.  This is
> roughly equivalent to trying to swap a DLL on an exec,
> it can be done but you need to know what you are doing.
> If you really want to muck with the libraries you will find
> it easier to work with the source distribution, where it is
> much easier to modify the classpath used.  Or as I already said
> don't use '-jar', use '-cp' and specify the class who's main you
> want to use.
> michael sorens wrote:
>> I am an experienced java developer, but I don't know everything. In
>> particular, I don't know how to get this product running. I download
>> products and libraries frequently; 99% of them can be started by
>> following the directions. A product should "want" to be installed, not
>> require seaching forums, shuffling files, scratching one's head, etc. So
>> I give up, because I still don't know how to run this product.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org

To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org

View raw message