I'm running XML Resume on OS X and just issuing the make command generates the .html and .txt versions, but fails on the .pdf. Here is the output:
spritzer:/Volumes/Lumina/nateaune/Documents/Employment/resume-1_5_1/examples nateaune$ make java org.apache.xalan.xslt.Process -in resume.xml -xsl ../xsl/output/us-html.xsl -out resume.html
java org.apache.xalan.xslt.Process -in resume.xml -xsl ../xsl/output/us-text.xsl -out resume.txt
java org.apache.xalan.xslt.Process -in resume.xml -xsl ../xsl/output/us-letter.xsl -out resume.fo
java org.apache.fop.apps.Fop -fo resume.fo -pdf resume.pdf Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/fop/apps/Fop make: *** [resume.pdf] Error 1
Any one know what's wrong?
Nate,
You need to copy the following files from FOP to your lib/ext directory as you did for xalan and xerces
i.e. fop-0.20.5/lib/*.jar
-jay
tried that too, didnt work
$ ls -tral /System/Library/Frameworks/JavaVM.framework/Versions//1.4.2/Home/lib/ext/ total 23416 -rw-r--r-- 1 root wheel 111430 Mar 24 20:44 sunjce_provider.jar -rw-r--r-- 1 root wheel 423031 Mar 24 21:02 localedata.jar -rw-r--r-- 1 root wheel 53253 Mar 24 21:03 ldapsec.jar -rw-r--r-- 1 root wheel 39283 Mar 24 21:24 apple_provider.jar -rw-r--r-- 1 root wheel 834852 Jun 8 22:55 xercesImpl-2.2.1.jar -rw-r--r-- 1 root wheel 1031036 Jun 8 22:55 xalan-2.4.1.jar -rw-r--r-- 1 root wheel 3032 Jun 8 23:01 xsltcservlet.jar -rw-r--r-- 1 root wheel 4328 Jun 8 23:01 xsltcejb.jar -rw-r--r-- 1 root wheel 2486 Jun 8 23:01 xsltcbrazil.jar -rw-r--r-- 1 root wheel 6142 Jun 8 23:01 xsltcapplet.jar -rw-r--r-- 1 root wheel 1933431 Jun 8 23:01 xsltc.jar -rw-r--r-- 1 root wheel 124724 Jun 8 23:01 xmlParserAPIs.jar -rw-r--r-- 1 root wheel 124724 Jun 8 23:01 xml-apis.jar -rw-r--r-- 1 root wheel 419361 Jun 8 23:01 xfc-21.jar -rw-r--r-- 1 root wheel 134936 Jun 8 23:01 xercesSamples.jar -rw-r--r-- 1 root wheel 1010806 Jun 8 23:01 xercesImpl.jar -rw-r--r-- 1 root wheel 40169 Jun 8 23:01 xalansamples.jar -rw-r--r-- 1 root wheel 1781922 Jun 8 23:01 xalan.jar -rw-r--r-- 1 root wheel 60047 Jun 8 23:01 resolver.jar -rw-r--r-- 1 root wheel 1519742 Jun 8 23:01 fop.jar -rw-r--r-- 1 root wheel 105573 Jun 8 23:01 bsf.jar -rw-r--r-- 1 root wheel 2111580 Jun 8 23:01 batik.jar -rw-r--r-- 1 root wheel 62694 Jun 8 23:01 avalon-framework-cvs-20020806.jar drwxr-xr-x 25 root wheel 850 Jun 8 23:01 . drwxr-xr-x 29 root wheel 986 Jun 8 23:13 ..
Note that all the *.jar files dated Jun 8 are the ones you should have available.
Log in to post a comment.
I'm running XML Resume on OS X and just issuing the make command generates the .html and .txt versions, but fails on the .pdf. Here is the output:
spritzer:/Volumes/Lumina/nateaune/Documents/Employment/resume-1_5_1/examples nateaune$ make
java org.apache.xalan.xslt.Process -in resume.xml -xsl ../xsl/output/us-html.xsl -out resume.html
java org.apache.xalan.xslt.Process -in resume.xml -xsl ../xsl/output/us-text.xsl -out resume.txt
java org.apache.xalan.xslt.Process -in resume.xml -xsl ../xsl/output/us-letter.xsl -out resume.fo
java org.apache.fop.apps.Fop -fo resume.fo -pdf resume.pdf
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/fop/apps/Fop
make: *** [resume.pdf] Error 1
Any one know what's wrong?
Nate,
You need to copy the following files from FOP to your lib/ext directory as you did for xalan and xerces
i.e. fop-0.20.5/lib/*.jar
-jay
tried that too, didnt work
$ ls -tral /System/Library/Frameworks/JavaVM.framework/Versions//1.4.2/Home/lib/ext/
total 23416
-rw-r--r-- 1 root wheel 111430 Mar 24 20:44 sunjce_provider.jar
-rw-r--r-- 1 root wheel 423031 Mar 24 21:02 localedata.jar
-rw-r--r-- 1 root wheel 53253 Mar 24 21:03 ldapsec.jar
-rw-r--r-- 1 root wheel 39283 Mar 24 21:24 apple_provider.jar
-rw-r--r-- 1 root wheel 834852 Jun 8 22:55 xercesImpl-2.2.1.jar
-rw-r--r-- 1 root wheel 1031036 Jun 8 22:55 xalan-2.4.1.jar
-rw-r--r-- 1 root wheel 3032 Jun 8 23:01 xsltcservlet.jar
-rw-r--r-- 1 root wheel 4328 Jun 8 23:01 xsltcejb.jar
-rw-r--r-- 1 root wheel 2486 Jun 8 23:01 xsltcbrazil.jar
-rw-r--r-- 1 root wheel 6142 Jun 8 23:01 xsltcapplet.jar
-rw-r--r-- 1 root wheel 1933431 Jun 8 23:01 xsltc.jar
-rw-r--r-- 1 root wheel 124724 Jun 8 23:01 xmlParserAPIs.jar
-rw-r--r-- 1 root wheel 124724 Jun 8 23:01 xml-apis.jar
-rw-r--r-- 1 root wheel 419361 Jun 8 23:01 xfc-21.jar
-rw-r--r-- 1 root wheel 134936 Jun 8 23:01 xercesSamples.jar
-rw-r--r-- 1 root wheel 1010806 Jun 8 23:01 xercesImpl.jar
-rw-r--r-- 1 root wheel 40169 Jun 8 23:01 xalansamples.jar
-rw-r--r-- 1 root wheel 1781922 Jun 8 23:01 xalan.jar
-rw-r--r-- 1 root wheel 60047 Jun 8 23:01 resolver.jar
-rw-r--r-- 1 root wheel 1519742 Jun 8 23:01 fop.jar
-rw-r--r-- 1 root wheel 105573 Jun 8 23:01 bsf.jar
-rw-r--r-- 1 root wheel 2111580 Jun 8 23:01 batik.jar
-rw-r--r-- 1 root wheel 62694 Jun 8 23:01 avalon-framework-cvs-20020806.jar
drwxr-xr-x 25 root wheel 850 Jun 8 23:01 .
drwxr-xr-x 29 root wheel 986 Jun 8 23:13 ..
Note that all the *.jar files dated Jun 8 are the ones you should have available.
-jay