#3 Using FOP from the command-line

closed
nobody
None
5
2005-04-15
2005-04-13
Virgul
No

Hi,

I really need of your help thanks !

I have read the documentation of your product but he
has one things that I don't understand what you have to
write in the fop.bat

my fop.bat:

@ECHO OFF

rem %~dp0 is the expanded pathname of the current
script under NT
set LOCAL_FOP_HOME= C:\fop-0.20.5\ if "%OS%"=="Windows_NT" set
LOCAL_FOP_HOME=%~dp0

set LIBDIR=%LOCAL_FOP_HOME%lib
set LOCALCLASSPATH=%LOCAL_FOP_HOME%
build\fop.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%
LIBDIR%\xml-apis.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%
LIBDIR%\xercesImpl-2.2.1.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%
LIBDIR%\xalan-2.4.1.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%
LIBDIR%\batik.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%
LIBDIR%\avalon-framework-cvs-20020806.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%
LIBDIR%\jimi-1.0.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%
LIBDIR%\jai_core.jar
set LOCALCLASSPATH=%LOCALCLASSPATH%;%
LIBDIR%\jai_codec.jar
java -Xmx512m -Xms256m -cp "%
LOCALCLASSPATH%" org.apache.fop.apps.Fop %1 %
2 %3 %4 %5 %6 %7 %8

So can you explain my what I have to add in my fop.bat?

Thanks for your help it's very appreciate

Thierry Coita
POWERneting SA
http://www.powernet.ch

Discussion

    • status: open --> closed
     
  • Logged In: YES
    user_id=225352

    Simply add the following line at the obvious place:

    set LOCALCLASSPATH=%LOCALCLASSPATH%;%
    LIBDIR%\barcode4j-fop-ext-0.20.5-complete.jar

    (that is, if you copy that JAR file into FOP's lib directory,
    otherwise you have to adjust the path to the JAR file).

    Please reopen the issue if you don't manage.

    Jeremias Maerki

     
  • Virgul
    Virgul
    2005-04-18

    Logged In: YES
    user_id=1254691

    Thanks a lot !

    It's working now!!!

    Thierry Coita