[email protected] wrote: > >> "Could not find the main class: HelloWorldPDF" >> means you don't even have your own app in your Java CLASSPATH. > > All java apps other than the iText examples are compiling and executing > properly
The same goes for iText examples on my side. > for HelloWorldPDF.java also I had compiled as > javac -classpath /path to itext.jar HelloWorldPDF.java > and it had compiled without any error Compile: yes, but when you run HelloWorldPDF, you need HelloWorldPDF.class to be reachable from somewhere in your CLASSPATH. >> NoClassDefFoundError: com/lowagie/text/Element >> may be an indication that you are using a JDK older than the >> one used to compile iText. > > I am using JDK 6 OK, then there should be no problem. > I had checked in the FAQs but could not find any with such a basic doubt as > mine.That is why I had posted in the forum.Sorry if it is not meant to be > posted here. :) Your problem is a very basic JAVA problem; it's not related to iText. (Unless of course you are using the wrong jar, but even then, it's not an iText problem.) -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
