最新消息:20190717 VPS服务器:Vultr新加坡,WordPress主题:大前端D8,统一介绍入口:关于

【记录】DocBook 开发过程中所用到的一些命令的log

Docbook crifan 802浏览 0评论

Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/fop/fonts/apps/TTFReaderCaused by: java.lang.ClassNotFoundException: org.apache.fop.fonts.apps.TTFReader        at java.net.URLClassLoader$1.run(Unknown Source)        at java.security.AccessController.doPrivileged(Native Method)        at java.net.URLClassLoader.findClass(Unknown Source)        at java.lang.ClassLoader.loadClass(Unknown Source)        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)        at java.lang.ClassLoader.loadClass(Unknown Source)Could not find the main class: org.apache.fop.fonts.apps.TTFReader.  Program will exit.

 

2.下载xsltproc转换程序

C:\Program Files\MKS\IntegrityClient\bin;D:\Program Files\ARM\bin\win_32-pentium;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Microsoft Visual Studio\VSS\win32;C:\Program Files\WinMerge;D:\Python\Python31;D:\Program Files\ARM\RVCT\Programs\4.1\561\win_32-pentium;C:\Program Files\Metrowerks\CodeWarrior\bin;C:\Program Files\Metrowerks\CodeWarrior\licenses;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Keil\C51\BIN;C:\Program Files\TortoiseSVN\bin;C:\Program Files\TortoiseGit\bin;D:\Program Files\ARM\RVI\Tools\4.1\32\programs\win_32-pentium;D:\Program Files\ARM\Utilities\FLEXlm\10.8.5.0\1\win_32-pentium;D:\Program Files\ARM\RVD\Core\4.1.1\25\win_32-pentium\bin;D:\Program Files\OpenJade-1.3\bin;D:\dev_root\DocBook\config\tool\xsltproc\libxslt-1.1.26.win32\bin;D:\dev_root\DocBook\config\tool\libxml2\libxml2-2.7.8.win32\bin;%JAVA_HOME%\bin;

/cygdrive/d/dev_root/DocBook/config/tool/fop/fop-1.0

java -cp build/fop.jar:lib/avalon-framework-4.2.0.jar:lib/commons-logging-1.0.4.jar:lib/commons-io-1.3.1.jar:lib/xmlgraphics-commons-1.4.jar org.apache.fop.fonts.apps.TTFReader -ttcname SimSun /cygdrive/c/WINDOWS/Fonts/simsun.ttc fonts/simsun.xml

E516537@CH3UDTDJ9G4C2X /cygdrive/d/dev_root/DocBook/config/tool/fop/fop-1.0
$ java -cp build/fop.jar:lib/avalon-framework-4.2.0.jar:lib/commons-logging-1.0.4.jar:lib/commons-io-1.3.1.jar:lib/xmlgraphics-commons-1.4.jar  org.apache.fop.fonts.apps.TTFReader -ttcname SimSun /cygdrive/c/WINDOWS/Fonts/simsun.ttc fonts/simsun.xml
Error: Could not find or load main class org.apache.fop.fonts.apps.TTFReader

java -cp build/fop.jar org.apache.fop.fonts.apps.TTFReader -ttcname SimSun -d DEBUG /cygdrive/c/WINDOWS/Fonts/simsun.ttc fonts/simsun.xml
java org.apache.fop.fonts.apps.TTFReader -ttcname SimSun -d DEBUG /cygdrive/c/WINDOWS/Fonts/simsun.ttc fonts/simsun.xml

java -cp build\fop.jar;lib\avalon-framework-4.2.0.jar;lib\commons-logging-1.0.4.jar;lib\commons-io-1.3.1.jar;lib\xmlgraphics-commons-1.4.jar org.apache.fop.fonts.apps.TTFReader -ttcname SimSun c:\windows\fonts\simsun.ttc fonts\simsun.xml

java -cp build\fop.jar;lib\avalon-framework-4.2.0.jar;lib\commons-logging-1.0.4.jar;lib\commons-io-1.3.1.jar;lib\xmlgraphics-commons-1.4.jar org.apache.fop.fonts.apps.TTFReader -ttcname SimHei c:\windows\fonts\simhei.ttf fonts\simhei.xml

D:\dev_root\DocBook\config\tool\fop\fop-1.0>fop -c D:\dev_root\DocBook\config\tool\fop\fop-1.0\conf\fop.conf D:\dev_root\DocBook\dev\src\output\fo\cn_xml_book_test.fo -pdf D:\dev_root\DocBook\dev\src\
output\pdf\cn_xml_book_test.pdf

D:\dev_root\DocBook\config\tool\fop\fop-1.0>fop -c D:\dev_root\DocBook\config\tool\fop\fop-1.0\conf\fop.xconf D:\dev_root\DocBook\dev\src\output\fo\cn_xml_book_test.fo -pdf D:\dev_root\DocBook\dev\src
\output\pdf\cn_xml_book_test.pdf

D:\dev_root\DocBook\dev\src>xsltproc -o output\fo\cn_xml_book_test.fo D:\dev_root\DocBook\config\tool\fop\fop-1.0\conf\docbook_fo.xsl cn_xml_book_test.xml
Note: namesp. cut : stripped namespace before processing           鎴戠殑绗竴绡嘍ocbook 5.0鏂囨。
WARNING: cannot add @xml:base to node set root element.  Relative paths may not work.
Note: namesp. cut : processing stripped document                   鎴戠殑绗竴绡嘍ocbook 5.0鏂囨。
Making portrait pages on USletter paper (8.5inx11in)

D:\dev_root\DocBook\config\tool\xsltproc\libxslt-1.1.26.win32\bin;

—————
xsltproc -o /cygdrive/d/dev_root/DocBook/dev/src/output/fo/cn_xml_book_test.fo  /cygdrive/d/dev_root/DocBook/config/tool/fop/fop-1.0/conf/docbook_fo.xsl /cygdrive/d/dev_root/DocBook/dev/src/cn_xml_book_test.xml

xsltproc -o D:\dev_root\DocBook\dev\src\output\fo\cn_xml_book_test.fo  D:\dev_root\DocBook\config\tool\fop\fop-1.0\conf\docbook_fo.xsl D:\dev_root\DocBook\dev\src\cn_xml_book_test.xml

xsltproc -o D:/dev_root/DocBook/dev/src/output/fo/cn_xml_book_test.fo  D:/dev_root/DocBook/config/tool/fop/fop-1.0/conf/docbook_fo.xsl D:/dev_root/DocBook/dev/src/cn_xml_book_test.xml

xsltproc -o D:/dev_root/DocBook/dev/src/output/fo/cn_xml_book_test.fo  D:/dev_root/DocBook/config/dtd/5.0/xsl-ns/docbook_fo_utf-8.xsl  D:/dev_root/DocBook/dev/src/cn_xml_book_test.xml

fop -c /cygdrive/d/dev_root/DocBook/config/tool/fop/fop-1.0/conf/fop.xconf /cygdrive/d/dev_root/DocBook/dev/src/output/fo/cn_xml_book_test.fo -pdf /cygdrive/d/dev_root/DocBook/dev/src/output/pdf/cn_xml_book_test.pdf

in cmd:
fop -c D:\dev_root\DocBook\config\tool\fop\fop-1.0\conf\fop.xconf D:\dev_root\DocBook\dev\src\output\fo\cn_xml_book_test.fo -pdf D:\dev_root\DocBook\dev\src\output\pdf\cn_xml_book_test.pdf

转载请注明:在路上 » 【记录】DocBook 开发过程中所用到的一些命令的log

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
70 queries in 0.115 seconds, using 18.85MB memory