Re: Exception in thread main java.lang.NoClassDefFoundError: org/apache/fop/cli/Main

2009-08-05 Thread Tuan Quan
This is on Solaris





From: Sergiu Dumitriu ser...@xwiki.com
To: fop-users@xmlgraphics.apache.org
Sent: Tuesday, August 4, 2009 4:39:44 PM
Subject: Re: Exception in thread main java.lang.NoClassDefFoundError: 
org/apache/fop/cli/Main

Tuan Quan wrote:
 Hi all,
 I'm using FOP 0.93.
 Got the above message, when execute the following script.
 Any help would be very appreciated.
 I have checked the .jar and they all are there specified in class path.
 thanks.

On Linux systems, classpath entries should be separated by a colon (:) instead 
of a semicolon (;)

LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/jimi-1.0.jar
becomes:
LOCALCLASSPATH=$LOCALCLASSPATH:$LIBDIR/jimi-1.0.jar

and so on.
-- Sergiu Dumitriu
http://purl.org/net/sergiu/

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

Re: Exception in thread main java.lang.NoClassDefFoundError: org/apache/fop/cli/Main

2009-08-05 Thread Tuan Quan
thanks, Sergiu.
It works. Somehow I overlooked that one.

 




From: Sergiu Dumitriu ser...@xwiki.com
To: fop-users@xmlgraphics.apache.org
Sent: Wednesday, August 5, 2009 9:34:57 AM
Subject: Re: Exception in thread main java.lang.NoClassDefFoundError: 
org/apache/fop/cli/Main

Tuan Quan wrote:
 This is on Solaris

Solaris is Unix-like, so : is used. See 
http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/classpath.html

 
 *From:* Sergiu Dumitriu ser...@xwiki.com
 *To:* fop-users@xmlgraphics.apache.org
 *Sent:* Tuesday, August 4, 2009 4:39:44 PM
 *Subject:* Re: Exception in thread main java.lang.NoClassDefFoundError: 
 org/apache/fop/cli/Main
 
 Tuan Quan wrote:
   Hi all,
   I'm using FOP 0.93.
   Got the above message, when execute the following script.
   Any help would be very appreciated.
   I have checked the .jar and they all are there specified in class path.
   thanks.
 
 On Linux systems, classpath entries should be separated by a colon (:) 
 instead of a semicolon (;)
 
 LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/jimi-1.0.jar
 becomes:
 LOCALCLASSPATH=$LOCALCLASSPATH:$LIBDIR/jimi-1.0.jar

-- Sergiu Dumitriu
http://purl.org/net/sergiu/

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

after creating PDF

2009-08-05 Thread Tuan Quan
Anyone knows why I received the following message after pdf is created on my 
SUN Solaris box?
thanks.


Xlib: connection to myunixbox:0.0 refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key


tuan


Exception in thread main java.lang.NoClassDefFoundError: org/apache/fop/cli/Main

2009-08-04 Thread Tuan Quan
Hi all,
I'm using FOP 0.93.
Got the above message, when execute the following script.
Any help would be very appreciated.
I have checked the .jar and they all are there specified in class path.
thanks.
Tuan.
PS. The script is in /apps/Process. 
FOP 0.93 is in /apps/fop-0.93#!/bin/sh
DirCur=/apps/Process
cd /apps/fop-0.93
LOGCHOICE=-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
LOGFILE1=-Dlog4j.configuration=file:conf/log4j.xsl.properties
LOGFILE2=-Dlog4j.configuration=file:conf/log4j.pdf.properties
FOP_HOME=/apps/fop-0.93
LIBDIR=$FOP_HOME/lib
LOCALCLASSPATH=$FOP_HOME/build/fop.jar
#LOCALCLASSPATH=$LOCALCLASSPATH;$FOP_HOME/build/fop-sandbox.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/xml-apis-1.3.02.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/xercesImpl-2.7.1.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/xalan-2.7.0.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/serializer-2.7.0.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/batik-all-1.6.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/xmlgraphics-commons-1.1.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/avalon-framework-4.2.0.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/commons-io-1.1.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/commons-logging-1.0.4.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/jimi-1.0.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/jai_core.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/jai_codec.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/fop-hyph.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/saxon8.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/log4j-1.2.14.jar

FOP_CMD_LINE_ARGS=-xml $DirCur/$Book.xml
FOP_CMD_LINE_ARGS=$FOP_CMD_LINE_ARGS -xsl $DirCur/my_assembly.xsl
FOP_CMD_LINE_ARGS=$FOP_CMD_LINE_ARGS -param g-book-path $DirCur/
FOP_CMD_LINE_ARGS=$FOP_CMD_LINE_ARGS -foout $DirCur/$Book.tmp
echo $FOP_CMD_LINE_ARGS
echo -
echo $LOCALCLASSPATH
java -Xms128M -Xmx512M -cp $LOCALCLASSPATH 
-Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl 
org.apache.fop.cli.Main FOP_CMD_LINE_ARGS
-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Re: fop 0.95 error

2009-02-18 Thread Tuan Quan
Jeremias,
then my problem is I can not find any library containing Saxon so I can set in 
the classpath.
Is Saxon a separate software? Where can i download it from ?

thanks.
tuan.

 




From: Jeremias Maerki d...@jeremias-maerki.ch
To: fop-users@xmlgraphics.apache.org
Sent: Wednesday, February 18, 2009 1:00:56 AM
Subject: Re: fop 0.95 error

I assume you specified 
-Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl
but forgot to put Saxon in the classpath.

On 18.02.2009 00:53:08 Tuan Quan wrote:
 Anyone knows why i have this error. thanks.
 
 
 
 ava.lang.reflect.InvocationTargetException
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:324)
     at org.apache.fop.cli.Main.startFOPWithDynamicClasspath(Main.java:132)
     at org.apache.fop.cli.Main.main(Main.java:199)
 
 Caused by: javax.xml.transform.TransformerFactoryConfigurationError: Provider 
 net.sf.saxon.TransformerFactoryI
 mpl not found
     at 
 javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:100)
     at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:191)
     at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:141)
     at org.apache.fop.cli.Main.startFOP(Main.java:168)
 
 
 Tuan.




Jeremias Maerki


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

Re: fop 0.95 error

2009-02-18 Thread Tuan Quan
Hi Jeremias,
now i got the saxon, i got the following error with the log4j :
log4j:WARN No appenders could be found for logger 
(org.apache.fop.render.RendererFactory).
log4j:WARN Please initialize the log4j system properly.

log4j included in classpath, and the jar file is there.

The script to call log4j is below:
LOGCHOICE=-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
export LOGCHOICE
LOGFILE1=-Dlog4j.configuration=file:conf/log4j.xsl.properties
export LOGFILE1
LOGFILE2=-Dlog4j.configuration=file:conf/log4j.pdf.properties
export LOGFILE2
LOGLEVEL=-Dorg.apache.commons.logging.simplelog.defaultlog=INFO
export LOGLEVEL


CONTENT OF  log4j.pdf.properties
# FO to PDF logging configuration
log4j.rootLogger=ERROR, A1
log4j.appender.A1=org.apache.log4j.FileAppender
log4j.appender.A1.File=debug_pdf.txt
log4j.appender.A1.Append=false
log4j.appender.A1.layout=org.apache.log4j.PatternLayout

CONTENT of  log4j.xsl.properties
# XML to FO logging configuration
log4j.rootLogger=ERROR, A1
log4j.appender.A1=org.apache.log4j.FileAppender
log4j.appender.A1.File=debug_xsl.txt
log4j.appender.A1.Append=false
log4j.appender.A1.layout=org.apache.log4j.PatternLayout


thanks.


 




From: Jeremias Maerki d...@jeremias-maerki.ch
To: fop-users@xmlgraphics.apache.org
Sent: Wednesday, February 18, 2009 9:39:47 AM
Subject: Re: fop 0.95 error

Tuan, 

yes, Saxon is a separate software. You can download it from:
http://saxon.sourceforge.net/

Please note that Saxon is not required for FOP. It's completely optional
but if your stylesheets depend on it, it's a different story.

On 18.02.2009 17:25:11 Tuan Quan wrote:
 Jeremias,
 then my problem is I can not find any library containing Saxon so I can set 
 in the classpath.
 Is Saxon a separate software? Where can i download it from ?
 
 thanks.
 tuan.
 
  
 
 
 
 
 From: Jeremias Maerki d...@jeremias-maerki.ch
 To: fop-users@xmlgraphics.apache.org
 Sent: Wednesday, February 18, 2009 1:00:56 AM
 Subject: Re: fop 0.95 error
 
 I assume you specified 
 -Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl
 but forgot to put Saxon in the classpath.
 
 On 18.02.2009 00:53:08 Tuan Quan wrote:
  Anyone knows why i have this error. thanks.
  
  
  
  ava.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at 
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at 
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at 
  org.apache.fop.cli.Main.startFOPWithDynamicClasspath(Main.java:132)
      at org.apache.fop.cli.Main.main(Main.java:199)
  
  Caused by: javax.xml.transform.TransformerFactoryConfigurationError: 
  Provider net.sf.saxon.TransformerFactoryI
  mpl not found
      at 
  javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:100)
      at 
  org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:191)
      at 
  org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:141)
      at org.apache.fop.cli.Main.startFOP(Main.java:168)
  
  
  Tuan.
 
 
 
 
 Jeremias Maerki
 
 
 -
 To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
 For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org




Jeremias Maerki


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

Re: xmlgraphic error

2009-02-17 Thread Tuan Quan
My binary download of 0.95 does not have the xmlgraphics-commons-1.3.1.jar - 
but even i have the same problem with 0.93 binarary which does have that 
xmlgraphics-commons-1.3.1.jar.
thanks.

 




From: Jeremias Maerki d...@jeremias-maerki.ch
To: fop-users@xmlgraphics.apache.org
Sent: Friday, February 13, 2009 12:41:06 PM
Subject: Re: xmlgraphic error

A NoClassDefFoundError means that a JAR is missing in the classpath. In
this case, it's xmlgraphics-commons-1.3.1.jar. It must be in the lib
directory under the directory where you installed FOP. Normally, that
should be there if you just extract the binary distribution. Maybe
you've accidentally deleted some files?

On 12.02.2009 22:30:34 Tuan Quan wrote:
 After installing 0.95 fop on solaris box, with java installed as well;
 running test  
 ./fop.sh -fo examples/fo/basic/readme.fo -awt
 
 got the below error:
 
 ava.lang.reflect.InvocationTargetException
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:324)
     at org.apache.fop.cli.Main.startFOPWithDynamicClasspath(Main.java:132)
     at org.apache.fop.cli.Main.main(Main.java:199)
 Caused by: java.lang.NoClassDefFoundError: 
 org/apache/xmlgraphics/image/loader/ImageContext
     at java.lang.ClassLoader.defineClass0(Native Method)
     at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
     at 
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
     at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
     at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
     at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
     at 
 org.apache.fop.cli.CommandLineOptions.init(CommandLineOptions.java:102)
     at org.apache.fop.cli.Main.startFOP(Main.java:153)
 
 Anyone knows why?
 thanks.
 Tuan.
 
  
 
 
 
 
 From: Frank Habermann lordla...@lordlamer.de
 To: fop-users@xmlgraphics.apache.org
 Sent: Thursday, February 12, 2009 12:56:18 AM
 Subject: Re: fop.sh
 
 Hi,
 
 because the script is called fop ?!
 
 Frank
 
 Tuan Quan schrieb:
  Hi all,
  I downloaded the binary FOP 0.95, but could not find fop.sh script.
  Anyone know why?
  thanks.
  tuan.
 



Jeremias Maerki


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

fop 0.95 binary for Solaris 9

2009-02-17 Thread Tuan Quan
Anyone knows where I can download the binary from?
I tried many places, after installing it, it missing some jar files in the the 
lib and build directories.
thanks.
steven.


fop 0.95 error

2009-02-17 Thread Tuan Quan
Anyone knows why i have this error. thanks.



ava.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.fop.cli.Main.startFOPWithDynamicClasspath(Main.java:132)
    at org.apache.fop.cli.Main.main(Main.java:199)

Caused by: javax.xml.transform.TransformerFactoryConfigurationError: Provider 
net.sf.saxon.TransformerFactoryI
mpl not found
    at 
javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:100)
    at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:191)
    at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:141)
    at org.apache.fop.cli.Main.startFOP(Main.java:168)


Tuan.

xmlgraphic error

2009-02-12 Thread Tuan Quan
After installing 0.95 fop on solaris box, with java installed as well;
running test  
./fop.sh -fo examples/fo/basic/readme.fo -awt

got the below error:

ava.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.fop.cli.Main.startFOPWithDynamicClasspath(Main.java:132)
    at org.apache.fop.cli.Main.main(Main.java:199)
Caused by: java.lang.NoClassDefFoundError: 
org/apache/xmlgraphics/image/loader/ImageContext
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
    at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    at 
org.apache.fop.cli.CommandLineOptions.init(CommandLineOptions.java:102)
    at org.apache.fop.cli.Main.startFOP(Main.java:153)

Anyone knows why?
thanks.
Tuan.

 




From: Frank Habermann lordla...@lordlamer.de
To: fop-users@xmlgraphics.apache.org
Sent: Thursday, February 12, 2009 12:56:18 AM
Subject: Re: fop.sh

Hi,

because the script is called fop ?!

Frank

Tuan Quan schrieb:
 Hi all,
 I downloaded the binary FOP 0.95, but could not find fop.sh script.
 Anyone know why?
 thanks.
 tuan.


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

fop.sh

2009-02-11 Thread Tuan Quan
Hi all,
I downloaded the binary FOP 0.95, but could not find fop.sh script.
Anyone know why?
thanks.
tuan.

Re: Exception in org/apache/fop/cli/Main

2009-01-20 Thread Tuan Quan
yes, there is 0.93 in the directory.

 




From: Andreas Delmelle andreas.delme...@telenet.be
To: fop-users@xmlgraphics.apache.org
Sent: Monday, January 19, 2009 4:02:00 PM
Subject: Re: Exception in org/apache/fop/cli/Main

On 19 Jan 2009, at 22:35, Tuan Quan wrote:

 My shell script is as below:

OK.
 ...
 LOCAL_FOP_HOME=/apps/fop-0.93
 LIBDIR=$LOCAL_FOP_HOME/lib

This is wrong, unless you still have 0.93 in that folder (which I'm assuming is 
not the case, since you get an error).

HTH!

Andreas

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

Exception in org/apache/fop/cli/Main

2009-01-19 Thread Tuan Quan
Anyone knows why I got this message:

Exception in thread main java.lang.NoClassDefFoundError: 
org/apache/fop/cli/Main

thanks.


Re: Exception in org/apache/fop/cli/Main

2009-01-19 Thread Tuan Quan
thanks, Andreas,
i downloaded from 
http://mirror.csclub.uwaterloo.ca/apache/xmlgraphics/fop/binaries/
fop-0.94-bin-jdk1.4.tar.gz 
and used on my Sparc's Solaris 9 system.
do i need to compile?
I used j2re1.4.2_19.


thanks.


 




From: Andreas Delmelle andreas.delme...@telenet.be
To: fop-users@xmlgraphics.apache.org
Sent: Monday, January 19, 2009 12:31:30 PM
Subject: Re: Exception in org/apache/fop/cli/Main

On 19 Jan 2009, at 19:54, Tuan Quan wrote:

 Anyone knows why I got this message:
 
 Exception in thread main java.lang.NoClassDefFoundError: 
 org/apache/fop/cli/Main

Should be something classpath-related. Maybe an older version of the fop.jar 
(0.20.5) somewhere?

Can you give a little more info on the environment, version and the way you 
invoke FOP?
Normally, if you use the shell scripts, the fop.jar should be added to the 
classpath automatically, unless for example, you downloaded the source 
distribution and try to run FOP without compiling/building first... (?)


Thanks

Andreas

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

Re: Exception in org/apache/fop/cli/Main

2009-01-19 Thread Tuan Quan
My shell script is as below:


#!/bin/sh
JAVA_HOME=/usr/java
export JAVA_HOME
DirCur=/tmp/tuan/Process
Book=mybook
PubStyle=PG
cd /apps/fop-0.93
LOGCHOICE=-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
LOGFILE1=-Dlog4j.configuration=file:conf/log4j.xsl.properties
LOGFILE2=-Dlog4j.configuration=file:conf/log4j.pdf.properties
LOCAL_FOP_HOME=/apps/fop-0.93
LIBDIR=$LOCAL_FOP_HOME/lib
LOCALCLASSPATH=$LOCAL_FOP_HOME/build/fop.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LOCAL_FOP_HOME/build/fop-sandbox.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/xml-apis-1.3.02.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/xercesImpl-2.7.1.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/xalan-2.7.0.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/serializer-2.7.0.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/batik-all-1.6.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/xmlgraphics-commons-1.1.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/avalon-framework-4.2.0.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/commons-io-1.1.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/commons-logging-1.0.4.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/jimi-1.0.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/jai_core.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/jai_codec.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/fop-hyph.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/saxon8.jar
LOCALCLASSPATH=$LOCALCLASSPATH;$LIBDIR/log4j-1.2.14.jar

FOP_CMD_LINE_ARGS=-xml $DirCur/Fragments/$Book.xml
FOP_CMD_LINE_ARGS=$FOP_CMD_LINE_ARGS -xsl $DirCur/Support/cadets_assembly.xsl
FOP_CMD_LINE_ARGS=$FOP_CMD_LINE_ARGS -param g-book-path $DirCur/Fragments/
FOP_CMD_LINE_ARGS=$FOP_CMD_LINE_ARGS -foout $DirCur/Fragments/$Book.tmp
java -Xms128M -Xmx512M -cp $LOCALCLASSPATH 
-Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl 
org.apache.fop.cli.Main $FOP_CMD_LINE_ARGS
if [ -s $DirCur/Fragments\$Book.tmp ]
then
   echo built book assembly.
else
   echo Could not build book assembly.
   exit
fi



thanks.

 




From: Andreas Delmelle andreas.delme...@telenet.be
To: fop-users@xmlgraphics.apache.org
Sent: Monday, January 19, 2009 1:41:48 PM
Subject: Re: Exception in org/apache/fop/cli/Main

On 19 Jan 2009, at 21:26, Tuan Quan wrote:

Hi

 thanks, Andreas,
 i downloaded from 
 http://mirror.csclub.uwaterloo.ca/apache/xmlgraphics/fop/binaries/
 fop-0.94-bin-jdk1.4.tar.gz
 and used on my Sparc's Solaris 9 system.
 do i need to compile?

No. You downloaded the binaries, so you already have the compiled classes in a 
fop.jar.
(BTW: FOP 0.95 is also available, if you want to use the latest)

How do you run FOP exactly? If you use the 'fop' shell script in the 
distribution, this should normally add 'fop.jar' automatically to the classpath.

One possible cause: if you don't have a FOP_HOME environment variable set, then 
executing the shell script from another directory than the shell script's 
location could lead to 'fop.jar' not being added to the classpath. FOP_HOME is 
then set to the directory from where the script is run, and 
$FOP_HOME/build/fop.jar will not be found.


HTH!

Cheers

Andreas

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