Re: I get a mysterious NoClassDefFoundError
Devon- Check J.Pietschmann's reply to your problem. He explains why your original command wasn't working, and why Jimi isn't included in the FOP download. I believe you can just download Jimi from the Sun site if you want it, but I've been running with the batch file as is, with no problems. It appears that if you specify a bad classpath, it's simply ignored, rather than bringing everything to a halt. -Jeff "L'eau" <[EMAIL PROTECTED]To: [EMAIL PROTECTED] o.com> cc: Subject: Re: I get a mysterious NoClassDefFoundError 05/02/2002 04:24 AM Please respond to fop-user AAhh i see. Thanx. I ignored That batch file, because it had the jimi.jar in it's path, and since that jar didn't come with my download I assumed that batch was for something totally different. Any idea where I can get a copy of the jimi.jar? I'm thinking that if I simply have that, it will solve all my problems. If I download an old copy of FOP, and use THAT jimi.jar, might it work in the latest FOP? Devon --- [EMAIL PROTECTED] wrote: > > Devon- > > OK, I'm confused too. I don't have a jimi-1.0.jar (or any > jimi*.jar, for > that matter) I'm attaching the .bat that came with my > download (I > downloaded last Friday, so I would think they'd be the same, > since the > download directory we both pulled from shows the package being > last > uploaded on March 4th. > > I don't think it'll make any difference, though, since you > seem to be > including everything that is there. I'm not familiar enough > with Java > (I've done a little programming in it, but when apps start > using multiple > jars, it becomes black magic to me) to have any answer, other > than using > the .bat file that works for me. I do think you're correct in > the > assumption that your OS shouldn't matter (I'm on XP, BTW.) > > Here are the contents of my batch file: > > java -cp > build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;lib\avalon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar > > org.apache.fop.apps.Fop -c conf/userconfig.xml %1 %2 %3 %4 %5 > %6 %7 %8 > > It should be untouched from the time I downloaded it, other > than the -c > conf/userconfig.xml parameter I added to use some custom > fonts. Hope that > helps. If not, post back, and perhaps someone wiser than I > can help. > > -Jeff __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com
Re: I get a mysterious NoClassDefFoundError
AAhh i see. Thanx. I ignored That batch file, because it had the jimi.jar in it's path, and since that jar didn't come with my download I assumed that batch was for something totally different. Any idea where I can get a copy of the jimi.jar? I'm thinking that if I simply have that, it will solve all my problems. If I download an old copy of FOP, and use THAT jimi.jar, might it work in the latest FOP? Devon --- [EMAIL PROTECTED] wrote: > > Devon- > > OK, I'm confused too. I don't have a jimi-1.0.jar (or any > jimi*.jar, for > that matter) I'm attaching the .bat that came with my > download (I > downloaded last Friday, so I would think they'd be the same, > since the > download directory we both pulled from shows the package being > last > uploaded on March 4th. > > I don't think it'll make any difference, though, since you > seem to be > including everything that is there. I'm not familiar enough > with Java > (I've done a little programming in it, but when apps start > using multiple > jars, it becomes black magic to me) to have any answer, other > than using > the .bat file that works for me. I do think you're correct in > the > assumption that your OS shouldn't matter (I'm on XP, BTW.) > > Here are the contents of my batch file: > > java -cp > build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;lib\avalon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar > > org.apache.fop.apps.Fop -c conf/userconfig.xml %1 %2 %3 %4 %5 > %6 %7 %8 > > It should be untouched from the time I downloaded it, other > than the -c > conf/userconfig.xml parameter I added to use some custom > fonts. Hope that > helps. If not, post back, and perhaps someone wiser than I > can help. > > -Jeff __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com
Re: I get a mysterious NoClassDefFoundError
L'eau wrote: -jar fop.jar -xml xmlfoRef.xml -xsl xml2pdf.xsl -pdf output.pdf ^ Using the -jar option forces the classpath defined in the manifest in the jar, which contains relative path entries. I belive the -cp setting is completely irrelevant in this scenario. Replace "-jar fop.jar" by org.apache.fop.apps.Fop or use java -jar fop.jar -xml... in the directory where you installed FOP (the lib directory with the jars should be a subdirectory). A much better and easier way is to use the fop.bat or fop.sh files from the distribution. Make sure the directory where the files are stored is the current directory while executing them. J.Pietschmann
Re: I get a mysterious NoClassDefFoundError
Devon- OK, I'm confused too. I don't have a jimi-1.0.jar (or any jimi*.jar, for that matter) I'm attaching the .bat that came with my download (I downloaded last Friday, so I would think they'd be the same, since the download directory we both pulled from shows the package being last uploaded on March 4th. I don't think it'll make any difference, though, since you seem to be including everything that is there. I'm not familiar enough with Java (I've done a little programming in it, but when apps start using multiple jars, it becomes black magic to me) to have any answer, other than using the .bat file that works for me. I do think you're correct in the assumption that your OS shouldn't matter (I'm on XP, BTW.) Here are the contents of my batch file: java -cp build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;lib\avalon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar org.apache.fop.apps.Fop -c conf/userconfig.xml %1 %2 %3 %4 %5 %6 %7 %8 It should be untouched from the time I downloaded it, other than the -c conf/userconfig.xml parameter I added to use some custom fonts. Hope that helps. If not, post back, and perhaps someone wiser than I can help. -Jeff Hi Jeff, Now I'm confused. I downloaded FOP from http://xml.apache.org/dist/fop/ , just this morning. It didn't include a jimi.jar and it didn't include any .bat files either. I included ever .jar file that was in my lib directory, in the classpath. Is there another place that I can download from? I'm using Windows ME, but I don't think that would matter would it (since it's all java)? Devon --- [EMAIL PROTECTED] wrote: > > Devon- > > I think you're missing a jar in there. My call to FOP > includes the > following -cp parameter: > > -cp > build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;lib\avalon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar > > I didn't see the path to the jimi-1.0,jar in your classpaths, > and I'm not > sure what ant.jar is. I guess including the path to jimi.jar > would be my > first attempt. > > Just out of curiosity, why aren't you using the fop.bat that > comes in the > downloadable package? > > -Jeff
Re: I get a mysterious NoClassDefFoundError
There should be two files: fop.sh (for Unix) and fop.bat (for windows) If they are not there, I would download fop again Carlos On 05/01/02 8:40, "L'eau" <[EMAIL PROTECTED]> wrote: > > Hi Jeff, > > Now I'm confused. I downloaded FOP from > http://xml.apache.org/dist/fop/ , just this morning. It didn't > include a jimi.jar and it didn't include any .bat files either. > I included ever .jar file that was in my lib directory, in the > classpath. Is there another place that I can download from? I'm > using Windows ME, but I don't think that would matter would it > (since it's all java)? > > Devon > > > --- [EMAIL PROTECTED] wrote: >> >> Devon- >> >> I think you're missing a jar in there. My call to FOP >> includes the >> following -cp parameter: >> >> -cp >> > build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;lib\avalo > n-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar >> >> I didn't see the path to the jimi-1.0,jar in your classpaths, >> and I'm not >> sure what ant.jar is. I guess including the path to jimi.jar >> would be my >> first attempt. >> >> Just out of curiosity, why aren't you using the fop.bat that >> comes in the >> downloadable package? >> >> -Jeff > > __ > Do You Yahoo!? > Yahoo! Health - your guide to health and wellness > http://health.yahoo.com -- Carlos E. Araya ---+ WebCT Administrator/Trainer P | California Virtual Campus - | C/O De Anza College G | 21250 Stevens Creek Blvd ---+ Cupertino, CA 95014 email [EMAIL PROTECTED] web http://www.cvc1.org/ (work) http://www.silverwolf-net.net (personal) phone 408 257 0420 (work) PGP Fingerprint:E629 5DFD 7EAE 4995 E9D7 3D2F 5A9F 0CE7 DFE7 1756 "If there is artificial intelligence, doesn't that imply there is also artificial stupidity!"
Re: I get a mysterious NoClassDefFoundError
Hi Jeff, Now I'm confused. I downloaded FOP from http://xml.apache.org/dist/fop/ , just this morning. It didn't include a jimi.jar and it didn't include any .bat files either. I included ever .jar file that was in my lib directory, in the classpath. Is there another place that I can download from? I'm using Windows ME, but I don't think that would matter would it (since it's all java)? Devon --- [EMAIL PROTECTED] wrote: > > Devon- > > I think you're missing a jar in there. My call to FOP > includes the > following -cp parameter: > > -cp > build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;lib\avalon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar > > I didn't see the path to the jimi-1.0,jar in your classpaths, > and I'm not > sure what ant.jar is. I guess including the path to jimi.jar > would be my > first attempt. > > Just out of curiosity, why aren't you using the fop.bat that > comes in the > downloadable package? > > -Jeff __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com
Re: I get a mysterious NoClassDefFoundError
Look at the fop.sh script and see what is it that you're missing. I normally run fop like this: /usr/local/java/fop/fop.sh -xml why-naginata.xml -xsl xsl/fo/cal.xsl -pdf naginata.pdf Note that you can specify additional classpath on the fop.sh script. See if the fop.sh script works and let us know. It may also have to do with the fact that J2SDK1.4 comes with older versions of Xerces and Xalan bundled by default and it will use the ones bundled over those on your classpath. See if fop.sh works and if it doesn't consider downgrading to 1.3 Carlos On 05/01/02 7:43, "L'eau" <[EMAIL PROTECTED]> wrote: > Hi, I'm new to the list. > > I don't have any clue why this is happening to me. I've spent > the past 4 hours trying to figure this out. I stumbled onto a > similar error message in the archives here, and it helped me > realize I needed to add the classpaths, but I'm still having the > error. I'm using the latest version of FOP, with J2SDK 1.4. > > C:\xsl\build>java -cp > c:\xsl\libs\ant.jar;c:\xsl\libs\avalon-framework-4.0.jar;c:\xsl\lib\batik.jar; > c:\xsl\lib\logkit-1.0.jar;c:\xsl\lib\xalan-2.0.0.jar;c:\xsl\lib\xerces-1.2.3.j > ar;c:\xsl\build\fop.jar > -jar fop.jar -xml xmlfoRef.xml -xsl xml2pdf.xsl -pdf output.pdf > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/log/format/Formatter > at org.apache.fop.apps.Fop.main(Fop.java:16) > > > I just don't get it, and I'm on the verge of going postal. > Thanx in advance for all help, guidance, or suggestions. BTW, > who do I send a message to about the FOP website and > documentation seriously needing to give workable examples of how > to run the program? It quite misled me and I nearly gave up on > it (but couldn't find another free XSL-FO renderer as an > alternative so I had to return to this stressful thing). > > Devon > > __ > Do You Yahoo!? > Yahoo! Health - your guide to health and wellness > http://health.yahoo.com -- Carlos E. Araya ---+ WebCT Administrator/Trainer P | California Virtual Campus - | C/O De Anza College G | 21250 Stevens Creek Blvd ---+ Cupertino, CA 95014 email [EMAIL PROTECTED] web http://www.cvc1.org/ (work) http://www.silverwolf-net.net (personal) phone 408 257 0420 (work) PGP Fingerprint:E629 5DFD 7EAE 4995 E9D7 3D2F 5A9F 0CE7 DFE7 1756 "If there is artificial intelligence, doesn't that imply there is also artificial stupidity!"
Re: I get a mysterious NoClassDefFoundError
Devon- I think you're missing a jar in there. My call to FOP includes the following -cp parameter: -cp build\fop.jar;lib\batik.jar;lib\xalan-2.0.0.jar;lib\xerces-1.2.3.jar;lib\avalon-framework-4.0.jar;lib\logkit-1.0.jar;lib\jimi-1.0.jar I didn't see the path to the jimi-1.0,jar in your classpaths, and I'm not sure what ant.jar is. I guess including the path to jimi.jar would be my first attempt. Just out of curiosity, why aren't you using the fop.bat that comes in the downloadable package? -Jeff "L'eau" <[EMAIL PROTECTED]To: [EMAIL PROTECTED] o.com> cc: Subject: I get a mysterious NoClassDefFoundError 05/01/2002 10:43 AM Please respond to fop-user Hi, I'm new to the list. I don't have any clue why this is happening to me. I've spent the past 4 hours trying to figure this out. I stumbled onto a similar error message in the archives here, and it helped me realize I needed to add the classpaths, but I'm still having the error. I'm using the latest version of FOP, with J2SDK 1.4. C:\xsl\build>java -cp c:\xsl\libs\ant.jar;c:\xsl\libs\avalon-framework-4.0.jar;c: \xsl\lib\batik.jar;c:\xsl\lib\logkit-1.0.jar;c:\xsl\lib\xalan-2.0.0.jar;c: \xsl\lib\xerces-1.2.3.jar;c:\xsl\build\fop.jar -jar fop.jar -xml xmlfoRef.xml -xsl xml2pdf.xsl -pdf output.pdf Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log/format/Formatter at org.apache.fop.apps.Fop.main(Fop.java:16) I just don't get it, and I'm on the verge of going postal. Thanx in advance for all help, guidance, or suggestions. BTW, who do I send a message to about the FOP website and documentation seriously needing to give workable examples of how to run the program? It quite misled me and I nearly gave up on it (but couldn't find another free XSL-FO renderer as an alternative so I had to return to this stressful thing). Devon __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com
I get a mysterious NoClassDefFoundError
Hi, I'm new to the list. I don't have any clue why this is happening to me. I've spent the past 4 hours trying to figure this out. I stumbled onto a similar error message in the archives here, and it helped me realize I needed to add the classpaths, but I'm still having the error. I'm using the latest version of FOP, with J2SDK 1.4. C:\xsl\build>java -cp c:\xsl\libs\ant.jar;c:\xsl\libs\avalon-framework-4.0.jar;c:\xsl\lib\batik.jar;c:\xsl\lib\logkit-1.0.jar;c:\xsl\lib\xalan-2.0.0.jar;c:\xsl\lib\xerces-1.2.3.jar;c:\xsl\build\fop.jar -jar fop.jar -xml xmlfoRef.xml -xsl xml2pdf.xsl -pdf output.pdf Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log/format/Formatter at org.apache.fop.apps.Fop.main(Fop.java:16) I just don't get it, and I'm on the verge of going postal. Thanx in advance for all help, guidance, or suggestions. BTW, who do I send a message to about the FOP website and documentation seriously needing to give workable examples of how to run the program? It quite misled me and I nearly gave up on it (but couldn't find another free XSL-FO renderer as an alternative so I had to return to this stressful thing). Devon __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com