You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Aaron Prohaska <ve...@verdesoft.net> on 2000/08/04 23:23:13 UTC

Compile error when running build.sh

Can someone help me get FOP installed? I keeping getting a compile error
when running build.sh that I don't understand. It seems like its not
compiling because I don't have something installed that I thought was
optional. Here is the output from the build.sh script.

Fop Build System
----------------

Building with classpath
.:/usr/loca/jdk1.2.2/lib/tools.jar:/opt/JRun/lib/jrun.jar:/opt/JRun/lib/jsp.
jar:/home/rhii/public_html/WEB-INF/classes:/usr/local/xerces-1_1_3/xerces.ja
r:/usr/local/xalan_1_2_D01/xalan.jar:/usr/local/xalan_1_2_D01/bsfengines.jar
:/usr/local/xalan_1_2_D01/bsf.jar:/usr/local/jdk1.2.2/lib/tools.jar:/usr/loc
al/jdk1.2.2/lib/classes.zip:./lib/ant.jar:./lib/xml.jar:./lib

Starting Ant...

Buildfile: build.xml
Project base dir set to: /usr/local/fop-0_13_0
Executing Target: init
------------------- Fop 0.19.2 [1999-2000] ----------------
Executing Target: prepare
Preparing the build directories
Executing Target: codegen
Resetting codegen directory
Generating the java files from xml resources
Executing Target: prepare-xt
Executing Target: prepare-src
Executing Target: compile
Compiling the sources
Compiling 1 source files to /usr/local/fop-0_13_0/build/classes
/usr/local/fop-0_13_0/build/src/org/apache/fop/apps/PDFOutputHandler.java:4:
Package com.jclark.xsl.sax not found in import.
import com.jclark.xsl.sax.*;
       ^
/usr/local/fop-0_13_0/build/src/org/apache/fop/apps/PDFOutputHandler.java:24
: Interface org.apache.fop.apps.OutputDocumentHandler of class
org.apache.fop.apps.PDFOutputHandler not found.
public class PDFOutputHandler extends FOTreeBuilder implements
OutputDocumentHandler {
                                                               ^
2 errors
BUILD FATAL ERROR: Compile failed, messages should have been provided.

thanks,

Aaron

		<<:::..:::...::: Aaron Prohaska :::..:::...:::>>
VerdeSoft Internet Services
mailto:verdesoft@verdesoft.net		http://www.verdesoft.net/


Re: Compile error when running build.sh

Posted by dejan <dk...@sierrasys.com>.
I think you are missing xt and xp jar files in you path...

Just download these jars and include them in your path....

Aaron Prohaska wrote:

> Can someone help me get FOP installed? I keeping getting a compile error
> when running build.sh that I don't understand. It seems like its not
> compiling because I don't have something installed that I thought was
> optional. Here is the output from the build.sh script.
>
> Fop Build System
> ----------------
>
> Building with classpath
> .:/usr/loca/jdk1.2.2/lib/tools.jar:/opt/JRun/lib/jrun.jar:/opt/JRun/lib/jsp.
> jar:/home/rhii/public_html/WEB-INF/classes:/usr/local/xerces-1_1_3/xerces.ja
> r:/usr/local/xalan_1_2_D01/xalan.jar:/usr/local/xalan_1_2_D01/bsfengines.jar
> :/usr/local/xalan_1_2_D01/bsf.jar:/usr/local/jdk1.2.2/lib/tools.jar:/usr/loc
> al/jdk1.2.2/lib/classes.zip:./lib/ant.jar:./lib/xml.jar:./lib
>
> Starting Ant...
>
> Buildfile: build.xml
> Project base dir set to: /usr/local/fop-0_13_0
> Executing Target: init
> ------------------- Fop 0.19.2 [1999-2000] ----------------
> Executing Target: prepare
> Preparing the build directories
> Executing Target: codegen
> Resetting codegen directory
> Generating the java files from xml resources
> Executing Target: prepare-xt
> Executing Target: prepare-src
> Executing Target: compile
> Compiling the sources
> Compiling 1 source files to /usr/local/fop-0_13_0/build/classes
> /usr/local/fop-0_13_0/build/src/org/apache/fop/apps/PDFOutputHandler.java:4:
> Package com.jclark.xsl.sax not found in import.
> import com.jclark.xsl.sax.*;
>        ^
> /usr/local/fop-0_13_0/build/src/org/apache/fop/apps/PDFOutputHandler.java:24
> : Interface org.apache.fop.apps.OutputDocumentHandler of class
> org.apache.fop.apps.PDFOutputHandler not found.
> public class PDFOutputHandler extends FOTreeBuilder implements
> OutputDocumentHandler {
>                                                                ^
> 2 errors
> BUILD FATAL ERROR: Compile failed, messages should have been provided.
>
> thanks,
>
> Aaron
>
>                 <<:::..:::...::: Aaron Prohaska :::..:::...:::>>
> VerdeSoft Internet Services
> mailto:verdesoft@verdesoft.net          http://www.verdesoft.net/


RE: Compile error when running build.sh

Posted by Aaron Prohaska <ve...@verdesoft.net>.
Why do I need these when the xml.apache.org says that using xt and xp is
optional?

"If you need PDFOutputHandler (an extension, which calls Fop from the XSLT
processor XT) you also must have xp.jar and xt.jar (both can be found at
http://www.jclark.com/xml/ in your classpath."
	from xml.apache.org

I thought that I could use Xalan for this?

Just so that everyone knows why I am doing this. I am trying to find a
solution for outputing pdf files dynamically from forms on web site. I
currently am outputing my results in html, but this needs to be changed to
pdf files. While I was looking for a pdf solution someone on the redhat list
suggested that I use FOP. Will FOP do what I need?

thanks,

Aaron

		<<:::..:::...::: Aaron Prohaska :::..:::...:::>>
VerdeSoft Internet Services
mailto:verdesoft@verdesoft.net		http://www.verdesoft.net/


-----Original Message-----
From: Fotis Jannidis [mailto:fotis.jannidis@lrz.uni-muenchen.de]
Sent: Friday, August 04, 2000 2:45 PM
To: fop-dev@xml.apache.org
Subject: Re: Compile error when running build.sh


you need xt.jar from james Clark (http://www.jclark.com/) in your classpath.
Fotis



Send reply to:  	fop-dev@xml.apache.org
From:           	"Aaron Prohaska" <ve...@verdesoft.net>
To:             	"Fop-Dev \(E-mail\)" <fo...@xml.apache.org>
Subject:        	Compile error when running build.sh
Date sent:      	Fri, 4 Aug 2000 14:23:13 -0700

> Can someone help me get FOP installed? I keeping getting a compile error
> when running build.sh that I don't understand. It seems like its not
> compiling because I don't have something installed that I thought was
> optional. Here is the output from the build.sh script.
>
> Fop Build System
> ----------------
>
> Building with classpath
>
.:/usr/loca/jdk1.2.2/lib/tools.jar:/opt/JRun/lib/jrun.jar:/opt/JRun/lib/jsp.
>
jar:/home/rhii/public_html/WEB-INF/classes:/usr/local/xerces-1_1_3/xerces.ja
>
r:/usr/local/xalan_1_2_D01/xalan.jar:/usr/local/xalan_1_2_D01/bsfengines.jar
>
:/usr/local/xalan_1_2_D01/bsf.jar:/usr/local/jdk1.2.2/lib/tools.jar:/usr/loc
> al/jdk1.2.2/lib/classes.zip:./lib/ant.jar:./lib/xml.jar:./lib
>
> Starting Ant...
>
> Buildfile: build.xml
> Project base dir set to: /usr/local/fop-0_13_0
> Executing Target: init
> ------------------- Fop 0.19.2 [1999-2000] ----------------
> Executing Target: prepare
> Preparing the build directories
> Executing Target: codegen
> Resetting codegen directory
> Generating the java files from xml resources
> Executing Target: prepare-xt
> Executing Target: prepare-src
> Executing Target: compile
> Compiling the sources
> Compiling 1 source files to /usr/local/fop-0_13_0/build/classes
>
/usr/local/fop-0_13_0/build/src/org/apache/fop/apps/PDFOutputHandler.java:4:
> Package com.jclark.xsl.sax not found in import.
> import com.jclark.xsl.sax.*;
>        ^
>
/usr/local/fop-0_13_0/build/src/org/apache/fop/apps/PDFOutputHandler.java:24
> : Interface org.apache.fop.apps.OutputDocumentHandler of class
> org.apache.fop.apps.PDFOutputHandler not found.
> public class PDFOutputHandler extends FOTreeBuilder implements
> OutputDocumentHandler {
>                                                                ^
> 2 errors
> BUILD FATAL ERROR: Compile failed, messages should have been provided.
>
> thanks,
>
> Aaron
>
> 		<<:::..:::...::: Aaron Prohaska :::..:::...:::>>
> VerdeSoft Internet Services
> mailto:verdesoft@verdesoft.net		http://www.verdesoft.net/
>



Re: Compile error when running build.sh

Posted by Fotis Jannidis <fo...@lrz.uni-muenchen.de>.
you need xt.jar from james Clark (http://www.jclark.com/) in your classpath.
Fotis



Send reply to:  	fop-dev@xml.apache.org
From:           	"Aaron Prohaska" <ve...@verdesoft.net>
To:             	"Fop-Dev \(E-mail\)" <fo...@xml.apache.org>
Subject:        	Compile error when running build.sh
Date sent:      	Fri, 4 Aug 2000 14:23:13 -0700

> Can someone help me get FOP installed? I keeping getting a compile error
> when running build.sh that I don't understand. It seems like its not
> compiling because I don't have something installed that I thought was
> optional. Here is the output from the build.sh script.
> 
> Fop Build System
> ----------------
> 
> Building with classpath
> .:/usr/loca/jdk1.2.2/lib/tools.jar:/opt/JRun/lib/jrun.jar:/opt/JRun/lib/jsp.
> jar:/home/rhii/public_html/WEB-INF/classes:/usr/local/xerces-1_1_3/xerces.ja
> r:/usr/local/xalan_1_2_D01/xalan.jar:/usr/local/xalan_1_2_D01/bsfengines.jar
> :/usr/local/xalan_1_2_D01/bsf.jar:/usr/local/jdk1.2.2/lib/tools.jar:/usr/loc
> al/jdk1.2.2/lib/classes.zip:./lib/ant.jar:./lib/xml.jar:./lib
> 
> Starting Ant...
> 
> Buildfile: build.xml
> Project base dir set to: /usr/local/fop-0_13_0
> Executing Target: init
> ------------------- Fop 0.19.2 [1999-2000] ----------------
> Executing Target: prepare
> Preparing the build directories
> Executing Target: codegen
> Resetting codegen directory
> Generating the java files from xml resources
> Executing Target: prepare-xt
> Executing Target: prepare-src
> Executing Target: compile
> Compiling the sources
> Compiling 1 source files to /usr/local/fop-0_13_0/build/classes
> /usr/local/fop-0_13_0/build/src/org/apache/fop/apps/PDFOutputHandler.java:4:
> Package com.jclark.xsl.sax not found in import.
> import com.jclark.xsl.sax.*;
>        ^
> /usr/local/fop-0_13_0/build/src/org/apache/fop/apps/PDFOutputHandler.java:24
> : Interface org.apache.fop.apps.OutputDocumentHandler of class
> org.apache.fop.apps.PDFOutputHandler not found.
> public class PDFOutputHandler extends FOTreeBuilder implements
> OutputDocumentHandler {
>                                                                ^
> 2 errors
> BUILD FATAL ERROR: Compile failed, messages should have been provided.
> 
> thanks,
> 
> Aaron
> 
> 		<<:::..:::...::: Aaron Prohaska :::..:::...:::>>
> VerdeSoft Internet Services
> mailto:verdesoft@verdesoft.net		http://www.verdesoft.net/
>