the jfor examples don't run .
Roberta Granata <[email protected]> Thu, 3 Jun 2004 13:45:07 +0100 (BST)
| Newsgroups | gmane.text.xml.jfor.general |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
today i had installed jfor and i compile it with
success (i read the jfor-readme page).
I try to run jfor , but i found problem.
1)
I am in the jfor directory and i write: 'ant
testdocs'.
This work ok.
ant testdocs
Buildfile: build.xml
init:
[echo] Cocoon 1.x modules will be compiled if
this says "true": ${cocoon1.present}
[mkdir] Created dir:
/home/zagta/software/jfor/build/src
[mkdir] Created dir:
/home/zagta/software/jfor/build/classes
[copy] Copying 131 files to
/home/zagta/software/jfor/build/src
[copy] Copied 18 empty directories to 1 empty
directory under /home/zagta/software/jfor/build/src
compile:
[javac] Compiling 131 source files to
/home/zagta/software/jfor/build/classes
dist:
[mkdir] Created dir:
/home/zagta/software/jfor/dist/lib
[jar] Building jar:
/home/zagta/software/jfor/dist/lib/jfor.jar
testdocs:
[mkdir] Created dir:
/home/zagta/software/jfor/build/testdocs
[java] CreateTestDocuments - using jfor V0.7.2rc1
- see http://www.jfor.org
[java] Generates documents to test the jfor RTF
library.
[java] Generating document
build/testdocs/SimpleDocument.rtf...
[java] Generating document
build/testdocs/TextAttributes.rtf...
[java] Generating document
build/testdocs/SimpleTable.rtf...
[java] Generating document
build/testdocs/SimpleLists.rtf...
[java] Generating document
build/testdocs/ListInTable.rtf...
[java] Generating document
build/testdocs/Whitespace.rtf...
[java] Generating document
build/testdocs/MergedTableCells.rtf...
[java] Generating document
build/testdocs/NestedTable.rtf...
[java] Generating document
build/testdocs/ExternalGraphic.rtf...
[java] [jfor.logger.config] {INFO} Using default
log priorities: category 'jfor' set to
'Priority[INFO/10]'
[java] [jfor.logger.config] {INFO} Using default
log priorities: category 'jfor.converter.sax.events'
set to 'Priority[WARN/15]'
[java] [jfor.logger.config] {INFO} Using default
log priorities: category
'jfor.converter.builder.actions' set to 'Priority[WARN
/15]'
[java] [jfor.logger.config] {INFO} System
properties can be used to set log priorities, using
'-Dlog.priority.jfor=DEBUG', for e
xample would activate the DEBUG level for all
categories under 'jfor'
[java] [jfor.converter.MainLog] {WARN} addChild:
container already closed
(parent=org.jfor.jfor.rtflib.rtfdoc.RtfParagraph child
=org.jfor.jfor.rtflib.rtfdoc.RtfLineBreak)
[java] [jfor.converter.MainLog] {WARN} addChild:
container already closed
(parent=org.jfor.jfor.rtflib.rtfdoc.RtfParagraph child
=org.jfor.jfor.rtflib.rtfdoc.RtfLineBreak)
[java] [jfor.converter.MainLog] {WARN} addChild:
container already closed
(parent=org.jfor.jfor.rtflib.rtfdoc.RtfParagraph child
=org.jfor.jfor.rtflib.rtfdoc.RtfLineBreak)
[java] [jfor.converter.MainLog] {WARN} addChild:
container already closed
(parent=org.jfor.jfor.rtflib.rtfdoc.RtfParagraph child
=org.jfor.jfor.rtflib.rtfdoc.RtfLineBreak)
[java] [jfor.converter.MainLog] {INFO} Writing
image 'file:/tmp/jfor-images/logo.emf'.
[java] [jfor.converter.MainLog] {INFO} Writing
image 'file:/tmp/jfor-images/logo.png'.
[java] [jfor.converter.MainLog] {INFO} Writing
image 'file:/tmp/jfor-images/logo.jpg'.
[java] [jfor.converter.MainLog] {INFO} Writing
image 'file:/tmp/jfor-images/logo.gif'.
[java] [jfor.converter.MainLog] {INFO} Writing
image 'file:/tmp/jfor-images/logo.gif'.
[java] Generating document
build/testdocs/BasicLink.rtf...
[java] [jfor.converter.MainLog] {INFO} Write
bookmark 'testBookmark'.
[java] Generating document
build/testdocs/ParagraphAlignment.rtf...
[java] CreateTestDocuments - all done.
BUILD SUCCESSFUL
Total time: 5 seconds
2) i try to run the examples:
java -cp
$JFOR_HOME/lib/xerces.jar:$JFOR_HOME/dist/lib/jfor.jar
ch.codeconsult.jfor.main.CmdLineConverter
$JFOR_HOME/samples/cocoon/minimal.fo.xml simple.rtf
Exception in thread "main"
java.lang.NoClassDefFoundError:
org/apache/log/Hierarchy
at
org.jfor.jfor.main.CmdLineConverter.<clinit>(Unknown
Source)
at
ch.codeconsult.jfor.main.CmdLineConverter.main(Unknown
Source)
Why this comand line don't work ?
How i can fix the problem?
Can somebody help me?
Thanks in advance,
ciao
Roberta
____________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504