When i am running an class file on browser through jsp page, In class file I am trying to make an a PDF. but i am getting the exception java.lang.NoClassDefFoundError : com/itextpdf/text/element. I am using eclipse IDE and apache tomcat as server
2 Answers
This is almost certainly an application packaging problem. Are you sure you have the itext jar file on your classpath?
1 Comment
user3415443
Are you talking about the java build path in particular project?
you should add jar in your classpath as DaveHowes said and in 'lib' folder under WEB-Inf
8 Comments
user3415443
Are you talking about the java build path in particular project?
sadzag
not only in java build path, it must be put in two places first in java build path and in 'lib' folder wich is under Web-Inf
user3415443
yes i have done both the things first put into Webinf/lib folder and then add to build path as external jar from the same folder i.e. lib
user3415443
my jar file name is itextpdf-5.2.0
sadzag
let the build path from the original folder an not from lib
|