Since you can compile it, the java compiler can successfully find and read iText-5.0.3.jar.
How do you run the program afterwards? Are you sure that you have the same CLASSPATH? If you have a start script it is possible that it doesn't include the iText jar... (Been there, done that) /Klas Erik Tronstad skrev 20:59: > > I'm trying to run a small program using the iText library. This is my > CLASSPATH: > > SET > CLASSPATH=C:\Programfiler\Java\jdk1.6.0_21\lib\tools.jar;S:\PROG_NT\Java\iText\iText-5.0.3.jar > > In the Java code I have: > > import com.itextpdf.text.*; > > The program compiles with no errors. At runtime, however, I get a > ClassNotFoundException on com.itextpdf.text.BadElementException. > > Somewhere I read that the iText package was compiled with JDK 1.4. > Does that perhaps mean I can't access it with JDK 1.6? > > Erik Tronstad > > > ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
