You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Lars Bjørndal <la...@lamasti.net> on 2011/12/19 20:28:31 UTC

Batik not loaded

I get the following error from fop:

19.des.2011 20:14:28 org.apache.fop.image.loader.batik.PreloaderSVG$Loader getImage
WARNING: Batik not in class path

Even though, I have the following CLASSPATH variable:

/usr/share/java/commons-io.jar:/usr/share/java/batik-all.jar:/usr/share/java/avalon-framework-api.jar:/usr/share/java/avalon-framework-impl.jar:/usr/share/java/xmlgraphics-commons.jar:/usr/share/java/commons-logging.jar:/usr/share/java/fop.jar::/home/lrs/fop/fop-hyph.jar:/usr/share/java/batik-all.jar

So, what's the problem here? Doesn't the reference to batik-all include
batik? The file exists, and is from package batik-1.7-11.fc15.

Regards,
Lars

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


Re: Batik not loaded

Posted by Lars Bjørndal <la...@lamasti.net>.
Hi, list!

[Pascal Sancho]

> Le 21/12/2011 22:24, Lars Bjørndal a écrit :
>> Hi!
>> 
>> [Pascal Sancho]
>> 
>>> Lars, are you running FOP on Linux without Xserver?
>> 
>> Yes, I'm blind, and don't need the graphic. Also, I do run from a server
>> to which I connect through ssh.
>> 
>>> If this is the case, you should run FOP (and Batik) in headless
>>> environment. See [1] for further info.
>>>
>>> [1] http://xmlgraphics.apache.org/fop/1.0/graphics.html#batik
>> 
>> I tried to run 'xvfb-run fop <parameters>', but that doesn't give any
>> better result. I looked at your reference, but I'm not able to figure
>> out how to do this. Can you please give me some more hints?
>
> I'm not familiar enough about running FOP on Linux Server. You should
> have a look on FopUserList archives, some related issues have been
> reported many times (see [2] and [3]).
> Note that your issue is quite more like the latter [3]
>
> [2]
> http://old.nabble.com/FOP-not-properly-working-in-UNIX-environment-to32828794.html#a32853367
> [3]
> http://fop-users.markmail.org/search/?q=batik#query:batik+page:1+mid:cm73wporpr4qhvci+state:results
>
> Another axis should be to look at Java environment.
> What version, and from what vendor, do you use?
>
>> Thanks and regards,
>> Lars
>> 
>>> Le 20/12/2011 10:01, Luis Bernardo a écrit :
>>>> You are including images in SVG, correct? Then the error may be
>>>> misleading what what you are missing is a different jar (probably JAI
>>>> ImageIO), not the Batik jar. Try that...
>>>>
>>>> On Tue, Dec 20, 2011 at 8:27 AM, Lars Bjørndal <la...@lamasti.net> wrote:
>>>>> [Terence]
>>>>>
>>>>>> On 12/19/2011 1:28 PM, Lars Bjørndal wrote:
>>>>>>> I get the following error from fop:
>>>>>>>
>>>>>>> 19.des.2011 20:14:28 org.apache.fop.image.loader.batik.PreloaderSVG$Loader getImage
>>>>>>> WARNING: Batik not in class path
>>>>>>>
>>>>>>> Even though, I have the following CLASSPATH variable:
>>>>>>>
>>>>>>> /usr/share/java/commons-io.jar:/usr/share/java/batik-all.jar:/usr/share/java/avalon-framework-api.jar:/usr/share/java/avalon-framework-impl.jar:/usr/share/java/xmlgraphics-commons.jar:/usr/share/java/commons-logging.jar:/usr/share/java/fop.jar::/home/lrs/fop/fop-hyph.jar:/usr/share/java/batik-all.jar
>>>>>>>
>>>>>>> So, what's the problem here? Doesn't the reference to batik-all include
>>>>>>> batik? The file exists, and is from package batik-1.7-11.fc15.
>>>>>>>
>>>>>>> Regards,
>>>>>>> Lars
>>>>>>
>>>>>> Hi, Lars-
>>>>>>
>>>>>> Are the two colons before /home/lrs/fop/fop-hyph.jar a typo?
>>>>>
>>>>> Yes or no.. In my .foprc file, I have:
>>>>> CLASSPATH="$CLASSPATH:/home/lrs/fop/fop-hyph.jar:/usr/share/java/batik-all.jar".
>>>>> When this is put together by the script, there is two colons. I tried
>>>>> to drop the colon. The CLASSPATH is then right, but I have the exactly same
>>>>> situation regarding Batic not in classpath.

At last, I found the problem. I think the batik package for Fedora is
broken, e.g. missing some dependency stuff. I installed the file
xml-apis-ext.jar, and included it in CLASSPATH. This file isn't
available by any Fedora package, unfortunately.

Thanks and regards,
Lars

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


Re: Batik not loaded

Posted by Lars Bjørndal <la...@lamasti.net>.
Hi, Pascal!

You wrote:

> Le 21/12/2011 22:24, Lars Bjørndal a écrit :
> > Hi!
> > 
> > [Pascal Sancho]
> > 
> >> Lars, are you running FOP on Linux without Xserver?
> > 
> > Yes, I'm blind, and don't need the graphic. Also, I do run from a server
> > to which I connect through ssh.
> > 
> >> If this is the case, you should run FOP (and Batik) in headless
> >> environment. See [1] for further info.
> >>
> >> [1] http://xmlgraphics.apache.org/fop/1.0/graphics.html#batik
> > 
> > I tried to run 'xvfb-run fop <parameters>', but that doesn't give any
> > better result. I looked at your reference, but I'm not able to figure
> > out how to do this. Can you please give me some more hints?
> 
> I'm not familiar enough about running FOP on Linux Server. You should
> have a look on FopUserList archives, some related issues have been
> reported many times (see [2] and [3]).
> Note that your issue is quite more like the latter [3]
> 
> [2]
> http://old.nabble.com/FOP-not-properly-working-in-UNIX-environment-to32828794.html#a32853367
> [3]
> http://fop-users.markmail.org/search/?q=batik#query:batik+page:1+mid:cm73wporpr4qhvci+state:results
> 
> Another axis should be to look at Java environment.
> What version, and from what vendor, do you use?

I'm using the Linux distribution Fedora, With some packages, like:

java-1.6.0-openjdk-1.6.0.0-60.1.10.4.fc15.i686
xmlgraphics-commons-1.4-2.noarch
fop-1.0-17.fc15.noarch
batik-1.7-11.fc15.noarch
jai-imageio-core-1.2-0.6.20100217cvs.fc15.i686

I looked at your references, but I'm not much wiser, unfortunately.

Thank you anyway.

Lars

> >> Le 20/12/2011 10:01, Luis Bernardo a écrit :
> >>> You are including images in SVG, correct? Then the error may be
> >>> misleading what what you are missing is a different jar (probably JAI
> >>> ImageIO), not the Batik jar. Try that...
> >>>
> >>> On Tue, Dec 20, 2011 at 8:27 AM, Lars Bjørndal <la...@lamasti.net> wrote:
> >>>> [Terence]
> >>>>
> >>>>> On 12/19/2011 1:28 PM, Lars Bjørndal wrote:
> >>>>>> I get the following error from fop:
> >>>>>>
> >>>>>> 19.des.2011 20:14:28 org.apache.fop.image.loader.batik.PreloaderSVG$Loader getImage
> >>>>>> WARNING: Batik not in class path
> >>>>>>
> >>>>>> Even though, I have the following CLASSPATH variable:
> >>>>>>
> >>>>>> /usr/share/java/commons-io.jar:/usr/share/java/batik-all.jar:/usr/share/java/avalon-framework-api.jar:/usr/share/java/avalon-framework-impl.jar:/usr/share/java/xmlgraphics-commons.jar:/usr/share/java/commons-logging.jar:/usr/share/java/fop.jar::/home/lrs/fop/fop-hyph.jar:/usr/share/java/batik-all.jar
> >>>>>>
> >>>>>> So, what's the problem here? Doesn't the reference to batik-all include
> >>>>>> batik? The file exists, and is from package batik-1.7-11.fc15.
> >>>>>>
> >>>>>> Regards,
> >>>>>> Lars
> >>>>>
> >>>>> Hi, Lars-
> >>>>>
> >>>>> Are the two colons before /home/lrs/fop/fop-hyph.jar a typo?
> >>>>
> >>>> Yes or no.. In my .foprc file, I have:
> >>>> CLASSPATH="$CLASSPATH:/home/lrs/fop/fop-hyph.jar:/usr/share/java/batik-all.jar".
> >>>> When this is put together by the script, there is two colons. I tried
> >>>> to drop the colon. The CLASSPATH is then right, but I have the exactly same
> >>>> situation regarding Batic not in classpath.
> >>>>
> >>>> Regards,
> >>>> Lars
> 
> 
> -- 
> Pascal

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


Re: Batik not loaded

Posted by Pascal Sancho <pa...@takoma.fr>.
Hi Lars,

Le 21/12/2011 22:24, Lars Bjørndal a écrit :
> Hi!
> 
> [Pascal Sancho]
> 
>> Lars, are you running FOP on Linux without Xserver?
> 
> Yes, I'm blind, and don't need the graphic. Also, I do run from a server
> to which I connect through ssh.
> 
>> If this is the case, you should run FOP (and Batik) in headless
>> environment. See [1] for further info.
>>
>> [1] http://xmlgraphics.apache.org/fop/1.0/graphics.html#batik
> 
> I tried to run 'xvfb-run fop <parameters>', but that doesn't give any
> better result. I looked at your reference, but I'm not able to figure
> out how to do this. Can you please give me some more hints?

I'm not familiar enough about running FOP on Linux Server. You should
have a look on FopUserList archives, some related issues have been
reported many times (see [2] and [3]).
Note that your issue is quite more like the latter [3]

[2]
http://old.nabble.com/FOP-not-properly-working-in-UNIX-environment-to32828794.html#a32853367
[3]
http://fop-users.markmail.org/search/?q=batik#query:batik+page:1+mid:cm73wporpr4qhvci+state:results

Another axis should be to look at Java environment.
What version, and from what vendor, do you use?

> Thanks and regards,
> Lars
> 
>> Le 20/12/2011 10:01, Luis Bernardo a écrit :
>>> You are including images in SVG, correct? Then the error may be
>>> misleading what what you are missing is a different jar (probably JAI
>>> ImageIO), not the Batik jar. Try that...
>>>
>>> On Tue, Dec 20, 2011 at 8:27 AM, Lars Bjørndal <la...@lamasti.net> wrote:
>>>> [Terence]
>>>>
>>>>> On 12/19/2011 1:28 PM, Lars Bjørndal wrote:
>>>>>> I get the following error from fop:
>>>>>>
>>>>>> 19.des.2011 20:14:28 org.apache.fop.image.loader.batik.PreloaderSVG$Loader getImage
>>>>>> WARNING: Batik not in class path
>>>>>>
>>>>>> Even though, I have the following CLASSPATH variable:
>>>>>>
>>>>>> /usr/share/java/commons-io.jar:/usr/share/java/batik-all.jar:/usr/share/java/avalon-framework-api.jar:/usr/share/java/avalon-framework-impl.jar:/usr/share/java/xmlgraphics-commons.jar:/usr/share/java/commons-logging.jar:/usr/share/java/fop.jar::/home/lrs/fop/fop-hyph.jar:/usr/share/java/batik-all.jar
>>>>>>
>>>>>> So, what's the problem here? Doesn't the reference to batik-all include
>>>>>> batik? The file exists, and is from package batik-1.7-11.fc15.
>>>>>>
>>>>>> Regards,
>>>>>> Lars
>>>>>
>>>>> Hi, Lars-
>>>>>
>>>>> Are the two colons before /home/lrs/fop/fop-hyph.jar a typo?
>>>>
>>>> Yes or no.. In my .foprc file, I have:
>>>> CLASSPATH="$CLASSPATH:/home/lrs/fop/fop-hyph.jar:/usr/share/java/batik-all.jar".
>>>> When this is put together by the script, there is two colons. I tried
>>>> to drop the colon. The CLASSPATH is then right, but I have the exactly same
>>>> situation regarding Batic not in classpath.
>>>>
>>>> Regards,
>>>> Lars


-- 
Pascal

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


Re: Batik not loaded

Posted by Lars Bjørndal <la...@lamasti.net>.
Hi!

[Pascal Sancho]

> Lars, are you running FOP on Linux without Xserver?

Yes, I'm blind, and don't need the graphic. Also, I do run from a server
to which I connect through ssh.

> If this is the case, you should run FOP (and Batik) in headless
> environment. See [1] for further info.
>
> [1] http://xmlgraphics.apache.org/fop/1.0/graphics.html#batik

I tried to run 'xvfb-run fop <parameters>', but that doesn't give any
better result. I looked at your reference, but I'm not able to figure
out how to do this. Can you please give me some more hints?

Thanks and regards,
Lars

> Le 20/12/2011 10:01, Luis Bernardo a écrit :
>> You are including images in SVG, correct? Then the error may be
>> misleading what what you are missing is a different jar (probably JAI
>> ImageIO), not the Batik jar. Try that...
>> 
>> On Tue, Dec 20, 2011 at 8:27 AM, Lars Bjørndal <la...@lamasti.net> wrote:
>>> [Terence]
>>>
>>>> On 12/19/2011 1:28 PM, Lars Bjørndal wrote:
>>>>> I get the following error from fop:
>>>>>
>>>>> 19.des.2011 20:14:28 org.apache.fop.image.loader.batik.PreloaderSVG$Loader getImage
>>>>> WARNING: Batik not in class path
>>>>>
>>>>> Even though, I have the following CLASSPATH variable:
>>>>>
>>>>> /usr/share/java/commons-io.jar:/usr/share/java/batik-all.jar:/usr/share/java/avalon-framework-api.jar:/usr/share/java/avalon-framework-impl.jar:/usr/share/java/xmlgraphics-commons.jar:/usr/share/java/commons-logging.jar:/usr/share/java/fop.jar::/home/lrs/fop/fop-hyph.jar:/usr/share/java/batik-all.jar
>>>>>
>>>>> So, what's the problem here? Doesn't the reference to batik-all include
>>>>> batik? The file exists, and is from package batik-1.7-11.fc15.
>>>>>
>>>>> Regards,
>>>>> Lars
>>>>
>>>> Hi, Lars-
>>>>
>>>> Are the two colons before /home/lrs/fop/fop-hyph.jar a typo?
>>>
>>> Yes or no.. In my .foprc file, I have:
>>> CLASSPATH="$CLASSPATH:/home/lrs/fop/fop-hyph.jar:/usr/share/java/batik-all.jar".
>>> When this is put together by the script, there is two colons. I tried
>>> to drop the colon. The CLASSPATH is then right, but I have the exactly same
>>> situation regarding Batic not in classpath.
>>>
>>> Regards,
>>> Lars

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


Re: Batik not loaded

Posted by Pascal Sancho <pa...@takoma.fr>.
Hi,

Lars, are you running FOP on Linux without Xserver?
If this is the case, you should run FOP (and Batik) in headless
environment. See [1] for further info.

[1] http://xmlgraphics.apache.org/fop/1.0/graphics.html#batik

Le 20/12/2011 10:01, Luis Bernardo a écrit :
> You are including images in SVG, correct? Then the error may be
> misleading what what you are missing is a different jar (probably JAI
> ImageIO), not the Batik jar. Try that...
> 
> On Tue, Dec 20, 2011 at 8:27 AM, Lars Bjørndal <la...@lamasti.net> wrote:
>> [Terence]
>>
>>> On 12/19/2011 1:28 PM, Lars Bjørndal wrote:
>>>> I get the following error from fop:
>>>>
>>>> 19.des.2011 20:14:28 org.apache.fop.image.loader.batik.PreloaderSVG$Loader getImage
>>>> WARNING: Batik not in class path
>>>>
>>>> Even though, I have the following CLASSPATH variable:
>>>>
>>>> /usr/share/java/commons-io.jar:/usr/share/java/batik-all.jar:/usr/share/java/avalon-framework-api.jar:/usr/share/java/avalon-framework-impl.jar:/usr/share/java/xmlgraphics-commons.jar:/usr/share/java/commons-logging.jar:/usr/share/java/fop.jar::/home/lrs/fop/fop-hyph.jar:/usr/share/java/batik-all.jar
>>>>
>>>> So, what's the problem here? Doesn't the reference to batik-all include
>>>> batik? The file exists, and is from package batik-1.7-11.fc15.
>>>>
>>>> Regards,
>>>> Lars
>>>
>>> Hi, Lars-
>>>
>>> Are the two colons before /home/lrs/fop/fop-hyph.jar a typo?
>>
>> Yes or no.. In my .foprc file, I have:
>> CLASSPATH="$CLASSPATH:/home/lrs/fop/fop-hyph.jar:/usr/share/java/batik-all.jar".
>> When this is put together by the script, there is two colons. I tried
>> to drop the colon. The CLASSPATH is then right, but I have the exactly same
>> situation regarding Batic not in classpath.
>>
>> Regards,
>> Lars
-- 
Pascal

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


Re: Batik not loaded

Posted by Luis Bernardo <lm...@gmail.com>.
You are including images in SVG, correct? Then the error may be
misleading what what you are missing is a different jar (probably JAI
ImageIO), not the Batik jar. Try that...

On Tue, Dec 20, 2011 at 8:27 AM, Lars Bjørndal <la...@lamasti.net> wrote:
> [Terence]
>
>> On 12/19/2011 1:28 PM, Lars Bjørndal wrote:
>>> I get the following error from fop:
>>>
>>> 19.des.2011 20:14:28 org.apache.fop.image.loader.batik.PreloaderSVG$Loader getImage
>>> WARNING: Batik not in class path
>>>
>>> Even though, I have the following CLASSPATH variable:
>>>
>>> /usr/share/java/commons-io.jar:/usr/share/java/batik-all.jar:/usr/share/java/avalon-framework-api.jar:/usr/share/java/avalon-framework-impl.jar:/usr/share/java/xmlgraphics-commons.jar:/usr/share/java/commons-logging.jar:/usr/share/java/fop.jar::/home/lrs/fop/fop-hyph.jar:/usr/share/java/batik-all.jar
>>>
>>> So, what's the problem here? Doesn't the reference to batik-all include
>>> batik? The file exists, and is from package batik-1.7-11.fc15.
>>>
>>> Regards,
>>> Lars
>>
>> Hi, Lars-
>>
>> Are the two colons before /home/lrs/fop/fop-hyph.jar a typo?
>
> Yes or no.. In my .foprc file, I have:
> CLASSPATH="$CLASSPATH:/home/lrs/fop/fop-hyph.jar:/usr/share/java/batik-all.jar".
> When this is put together by the script, there is two colons. I tried
> to drop the colon. The CLASSPATH is then right, but I have the exactly same
> situation regarding Batic not in classpath.
>
> Regards,
> Lars
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>

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


Re: Batik not loaded

Posted by Lars Bjørndal <la...@lamasti.net>.
[Terence]

> On 12/19/2011 1:28 PM, Lars Bjørndal wrote:
>> I get the following error from fop:
>>
>> 19.des.2011 20:14:28 org.apache.fop.image.loader.batik.PreloaderSVG$Loader getImage
>> WARNING: Batik not in class path
>>
>> Even though, I have the following CLASSPATH variable:
>>
>> /usr/share/java/commons-io.jar:/usr/share/java/batik-all.jar:/usr/share/java/avalon-framework-api.jar:/usr/share/java/avalon-framework-impl.jar:/usr/share/java/xmlgraphics-commons.jar:/usr/share/java/commons-logging.jar:/usr/share/java/fop.jar::/home/lrs/fop/fop-hyph.jar:/usr/share/java/batik-all.jar
>>
>> So, what's the problem here? Doesn't the reference to batik-all include
>> batik? The file exists, and is from package batik-1.7-11.fc15.
>>
>> Regards,
>> Lars
>
> Hi, Lars-
>
> Are the two colons before /home/lrs/fop/fop-hyph.jar a typo?

Yes or no.. In my .foprc file, I have:
CLASSPATH="$CLASSPATH:/home/lrs/fop/fop-hyph.jar:/usr/share/java/batik-all.jar".
When this is put together by the script, there is two colons. I tried
to drop the colon. The CLASSPATH is then right, but I have the exactly same
situation regarding Batic not in classpath.

Regards,
Lars

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


Re: Batik not loaded

Posted by "Terence M. Bandoian" <te...@tmbsw.com>.
On 12/19/2011 1:28 PM, Lars Bjørndal wrote:
> I get the following error from fop:
>
> 19.des.2011 20:14:28 org.apache.fop.image.loader.batik.PreloaderSVG$Loader getImage
> WARNING: Batik not in class path
>
> Even though, I have the following CLASSPATH variable:
>
> /usr/share/java/commons-io.jar:/usr/share/java/batik-all.jar:/usr/share/java/avalon-framework-api.jar:/usr/share/java/avalon-framework-impl.jar:/usr/share/java/xmlgraphics-commons.jar:/usr/share/java/commons-logging.jar:/usr/share/java/fop.jar::/home/lrs/fop/fop-hyph.jar:/usr/share/java/batik-all.jar
>
> So, what's the problem here? Doesn't the reference to batik-all include
> batik? The file exists, and is from package batik-1.7-11.fc15.
>
> Regards,
> Lars

Hi, Lars-

Are the two colons before /home/lrs/fop/fop-hyph.jar a typo?

-Terence Bandoian

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


Re: Batik not loaded

Posted by Rob Sargent <rs...@xmission.com>.
If the "double colon" which Terrence pointed out was not the problem, by
"ide" I meant "integrated development environment" such as eclipse,
net-beans and the like.

On 12/19/2011 02:20 PM, Lars Bjørndal wrote:
> [Rob Sargent]
>
>> Any ide involved?
> What do you mean by "ide"?
>
>> fop version?
> 'fop -version' returns FOP Version SVN tags/fop-1_0
>
> 'rpm -q fop' returns fop-1.0-17.fc15.noarch
>
> Regards,
> Lars
>
>> On 12/19/2011 12:28 PM, Lars Bjørndal wrote:
>>> I get the following error from fop:
>>>
>>> 19.des.2011 20:14:28 org.apache.fop.image.loader.batik.PreloaderSVG$Loader getImage
>>> WARNING: Batik not in class path
>>>
>>> Even though, I have the following CLASSPATH variable:
>>>
>>> /usr/share/java/commons-io.jar:/usr/share/java/batik-all.jar:/usr/share/java/avalon-framework-api.jar:/usr/share/java/avalon-framework-impl.jar:/usr/share/java/xmlgraphics-commons.jar:/usr/share/java/commons-logging.jar:/usr/share/java/fop.jar::/home/lrs/fop/fop-hyph.jar:/usr/share/java/batik-all.jar
>>>
>>> So, what's the problem here? Doesn't the reference to batik-all include
>>> batik? The file exists, and is from package batik-1.7-11.fc15.
>>>
>>> Regards,
>>> Lars
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>

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


Re: Batik not loaded

Posted by Lars Bjørndal <la...@lamasti.net>.
[Rob Sargent]

> Can you show that the classpath you list is in fact the classpath in
> play at runtime?

Here's the script I used to start the process:

#!/bin/sh
# 
# Fop script
# JPackage Project <http://www.jpackage.org/>

# Source functions library
if [ -f /usr/share/java-utils/java-functions ] ; then 
  . /usr/share/java-utils/java-functions
else
  echo "Can't find functions library, aborting"
  exit 1
fi

# Source system prefs
if [ -f /etc/fop.conf ] ; then 
  . /etc/fop.conf
fi

# Source user prefs
if [ -f $HOME/.foprc ] ; then 
  . $HOME/.foprc
fi

# Configuration
MAIN_CLASS=org.apache.fop.cli.Main
# Set parameters
set_jvm
set_classpath commons-io batik-all avalon-framework-api \
  avalon-framework-impl xmlgraphics-commons \
  commons-logging fop
set_flags $BASE_FLAGS
set_options $BASE_OPTIONS

# Let's start
echo $CLASSPATH
run "$@"

> Any ide involved?

What do you mean by "ide"?

> fop version?

'fop -version' returns FOP Version SVN tags/fop-1_0

'rpm -q fop' returns fop-1.0-17.fc15.noarch

Regards,
Lars

> On 12/19/2011 12:28 PM, Lars Bjørndal wrote:
>> I get the following error from fop:
>>
>> 19.des.2011 20:14:28 org.apache.fop.image.loader.batik.PreloaderSVG$Loader getImage
>> WARNING: Batik not in class path
>>
>> Even though, I have the following CLASSPATH variable:
>>
>> /usr/share/java/commons-io.jar:/usr/share/java/batik-all.jar:/usr/share/java/avalon-framework-api.jar:/usr/share/java/avalon-framework-impl.jar:/usr/share/java/xmlgraphics-commons.jar:/usr/share/java/commons-logging.jar:/usr/share/java/fop.jar::/home/lrs/fop/fop-hyph.jar:/usr/share/java/batik-all.jar
>>
>> So, what's the problem here? Doesn't the reference to batik-all include
>> batik? The file exists, and is from package batik-1.7-11.fc15.
>>
>> Regards,
>> Lars

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


Re: Batik not loaded

Posted by Rob Sargent <rs...@xmission.com>.
Can you show that the classpath you list is in fact the classpath in
play at runtime?  Any ide involved? fop version?

On 12/19/2011 12:28 PM, Lars Bjørndal wrote:
> I get the following error from fop:
>
> 19.des.2011 20:14:28 org.apache.fop.image.loader.batik.PreloaderSVG$Loader getImage
> WARNING: Batik not in class path
>
> Even though, I have the following CLASSPATH variable:
>
> /usr/share/java/commons-io.jar:/usr/share/java/batik-all.jar:/usr/share/java/avalon-framework-api.jar:/usr/share/java/avalon-framework-impl.jar:/usr/share/java/xmlgraphics-commons.jar:/usr/share/java/commons-logging.jar:/usr/share/java/fop.jar::/home/lrs/fop/fop-hyph.jar:/usr/share/java/batik-all.jar
>
> So, what's the problem here? Doesn't the reference to batik-all include
> batik? The file exists, and is from package batik-1.7-11.fc15.
>
> Regards,
> Lars
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>

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