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

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: Exception in thread main java.lang.NoClassDefFoundError: org/apache/fop/cli/Main

2009-08-04 Thread Sergiu Dumitriu

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



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

2007-03-13 Thread jonn

I have downloaded fop-0.93-src.zip and extracted it and added fop-0.93\lib
folder to classpath. 

And simply tried ‘fop’ command without args. I got this error.  

D:\fop-0.93fop 
 java  
Exception in thread main java.lang.NoClassDefFoundError:
org/apache/fop/cli/Main

I couldn't find fop.jar in the extracted folder. Please help me on this




-- 
View this message in context: 
http://www.nabble.com/Exception-in-thread-%22main%22-java.lang.NoClassDefFoundError%3A-org-apache-fop-cli-Main-tf3394371.html#a9449677
Sent from the FOP - Users mailing list archive at Nabble.com.


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



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

2007-03-13 Thread Stefan Heuer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
jonn schrieb:
 I have downloaded fop-0.93-src.zip and extracted it and added fop-0.93\lib
 folder to classpath.

 And simply tried ‘fop’ command without args. I got this error. 

 D:\fop-0.93fop
  java 
 Exception in thread main java.lang.NoClassDefFoundError:
 org/apache/fop/cli/Main

 I couldn't find fop.jar in the extracted folder. Please help me on this




Hi John,

Download
http://apache.mirroring.de/xmlgraphics/fop/fop-0.93-bin-jdk1.4.zip
or
http://apache.mirroring.de/xmlgraphics/fop/fop-0.93-bin-jdk1.3.zip

and try again.


Stefan
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFF9mofirQ0Ts08AdMRAuR9AKCXKZ11T6SeG5Nlhz27d/a6jekqMgCggI3H
VmwrTHpFGYyNI/efgVVA+LU=
=qTYH
-END PGP SIGNATURE-


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



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

2007-03-13 Thread Adrian Cumiskey

Hi Jonn,

You downloaded the source only.  You need to build it with ant first.

cd D:\fop-0.93
ant jar-main
fop

Adrian.

jonn wrote:

I have downloaded fop-0.93-src.zip and extracted it and added fop-0.93\lib
folder to classpath. 

And simply tried ‘fop’ command without args. I got this error.  

D:\fop-0.93fop 
 java  
Exception in thread main java.lang.NoClassDefFoundError:

org/apache/fop/cli/Main

I couldn't find fop.jar in the extracted folder. Please help me on this







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