Hi John,

John Saylor a écrit :
> hi
> 
> i'm just trying to run fop on my linux box. i'm using fop-0.93 [from
> svn] and sun's jdk 1.6u1.
> 
> i compiled it from source and i think it went well.
> 
> i was trying to use /etc/fop.conf to set the base path so it would find
> what it needs to run and instead i get this:
> 
> 1024 $ fop
> /etc/fop.conf: line 1: syntax error near unexpected token `newline'
> /etc/fop.conf: line 1: `<?xml version="1.0"?>'
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/fop/cli/Main

Actually this file is expected to be a shell script, probably meant to
setup environment variables for the fop script itself.

I suspect this has remained from the old 0.20.5 version, as I can't
think of any use case for the 0.93 one. Indeed it would make sense to
have the normal configuration file there. What do others think?

In the meantime you can apply the attached patch to the fop script to
achieve what you need.


HTH,
Vincent

Index: fop
===================================================================
--- fop	(révision 522536)
+++ fop	(copie de travail)
@@ -44,7 +44,7 @@
 else
   # load system-wide fop configuration
   if [ -f "/etc/fop.conf" ] ; then
-    . /etc/fop.conf
+    fop_exec_args="-c /etc/fop.conf $fop_exec_args "
   fi
 
   # load user fop configuration

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to