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 John Saylor <js...@liaison-intl.com> on 2007/03/30 16:41:27 UTC

setting up environment

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


wtf!!!


here are the top 10 lines of that file ...
1026 $ head /etc/fop.conf
<?xml version="1.0"?>
<fop version="1.0">

  <!-- Base URL for resolving relative URLs -->
  <base>/usr/local/src/fop-0.93</base>

  <!-- Source resolution in dpi (dots/pixels per inch) for determining
the size of pixels in SVG and bitmap images, default: 72dpi -->
  <source-resolution>72</source-resolution>
  <!-- Target resolution in dpi (dots/pixels per inch) for specifying
the target resolution for generated bitmaps, default: 72dpi -->
  <target-resolution>72</target-resolution>


it's mostly straight outta the distribution. i just deleted a bunch the
comments at the top as a first [kinda lame] attempt at fixing the
problem.

any help or suggestions welcome.

--
\js 

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


Re: setting up environment

Posted by Vincent Hennebert <vi...@anyware-tech.com>.
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