1

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 2

1

This is almost certainly an application packaging problem. Are you sure you have the itext jar file on your classpath?

Sign up to request clarification or add additional context in comments.

1 Comment

Are you talking about the java build path in particular project?
1

you should add jar in your classpath as DaveHowes said and in 'lib' folder under WEB-Inf

8 Comments

Are you talking about the java build path in particular project?
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
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
my jar file name is itextpdf-5.2.0
let the build path from the original folder an not from lib
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.