954,518 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Not able to resolve import.com.lowagie

Hi guys,
I am using MyEclipse....I have even import the itext.jar file to my project folder....still I am getting error in my java code....

Error in resolving
import com.lowagie.text.html.*;
import com.lowagie.text.pdf.*;

Can anyone help me.............

gonzi.p12
Newbie Poster
9 posts since Dec 2009
Reputation Points: 10
Solved Threads: 0
 

"project properties"
"build path"

masijade
Industrious Poster
Moderator
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
 
"project properties" "build path"


tried doing that also.....

Only import com.lowagie.text.*;
and import com.lowagie.text.rtf.*;
are getting RESOLVED

Errors still remains for html and pdf formats
import com.lowagie.text.html.*;
import com.lowagie.text.pdf.*;

gonzi.p12
Newbie Poster
9 posts since Dec 2009
Reputation Points: 10
Solved Threads: 0
 

Then check that those packages are actually there. Check that the classes you're attempting to call are actually in those packages, and check that everything is spelled right.

If all those classes are suppossed to be in that jar, and they are in that jar, and you are using the right classes (with full package), and they are not mispelled, then they will be found. The compiler does not pick and choose which packages from a jar to include, and which not. So, if the jar exists, and contains the things you are trying to use, then the problem is yours. Either mispelling, wrong package for the class, or the jar not properly included on the class path (i.e. build path in this case).

masijade
Industrious Poster
Moderator
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
 

Then check that those packages are actually there. Check that the classes you're attempting to call are actually in those packages, and check that everything is spelled right.

If all those classes are suppossed to be in that jar, and they are in that jar, and you are using the right classes (with full package), and they are not mispelled, then they will be found. The compiler does not pick and choose which packages from a jar to include, and which not. So, if the jar exists, and contains the things you are trying to use, then the problem is yours. Either mispelling, wrong package for the class, or the jar not properly included on the class path (i.e. build path in this case).


Thanks for that quick reply................

I tried searching the for the PdfWriter and HtmlWriter classes but was shocked to see that they are not present in the jar which I imported. There is no class in the jar as com.lowagie.text.pdf.*;...I found the com.lowagie.text.rtf.*;

gonzi.p12
Newbie Poster
9 posts since Dec 2009
Reputation Points: 10
Solved Threads: 0
 

Then maybe you should download a newer version of iText.

masijade
Industrious Poster
Moderator
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
 

Thanks a lot!I have been confused by this problem for a long time!

mintie
Newbie Poster
1 post since Apr 2010
Reputation Points: 10
Solved Threads: 1
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You