I have the same issue on ubuntu with a sun JDK 6. But when I build the jar-with-dependencies and run that, it runs without a problem. (this is build when you do the maven build)
Perhaps it's because there are more required libraries than only itextpdf. According to the jar's manifest: Manifest-Version: 1.0 Archiver-Version: Plexus Archiver Created-By: Apache Maven Built-By: blowagie Build-Jdk: 1.5.0_17 Main-Class: com.itextpdf.rups.Rups Class-Path: itextpdf-5.2.0.jar dom4j-1.6.1.jar xml-apis-1.0.b2.jar bct sp-jdk15-1.46.jar bcprov-jdk15-1.46.jar bcmail-jdk15-1.46.jar On 15/03/12 13:34, Larry Evans wrote: > On 03/15/12 06:11, Larry Evans wrote: > [snip] >> after which, the error about IIOP disappeared; however, some other >> errors remained: >> >> ~/prog_dev/itext/rups/1.0.1 $ java -jar itext-rups-1.0.1.jar >> Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: >> com/itextpdf/text/DocumentException >> at com.itextpdf.rups.Rups.startApplication(Rups.java:79) >> at com.itextpdf.rups.Rups$1.run(Rups.java:55) >> at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) >> . >> . >> . >> >> How can this error be avoided? >> > There's: > > com/itextpdf/text/DocumentException.class > > in: > > /home/evansl/prog_dev/itext/svn/main/itext/target/itextpdf-5.1.4-SNAPSHOT.jar > > However, even adding that to class path failed to work: > > ~/prog_dev/itext/rups/1.0.1 $ java -classpath > /home/evansl/prog_dev/itext/svn/main/itext/target/itextpdf-5.1.4-SNAPSHOT.jar > -jar itext-rups-1.0.1.jar > Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: > com/itextpdf/text/DocumentException > at com.itextpdf.rups.Rups.startApplication(Rups.java:79) > at com.itextpdf.rups.Rups$1.run(Rups.java:55) > . > . > . > > > Any ideas what I'm doing wrong? > > TIA, > > -Larry > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > > iText(R) is a registered trademark of 1T3XT BVBA. > Many questions posted to this list can (and will) be answered with a > reference to the iText book: http://www.itextpdf.com/book/ > Please check the keywords list before you ask for examples: > http://itextpdf.com/themes/keywords.php -- Balder VC http://www.redlab.be/blog/ http://twitter.com/redlabbe ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
