ANANTH ANANTH wrote: > export pdf.java:264:ambiguous class:com.lowagie.text.image and > java.awt.image > what is this error due to and how to solve it.
That's a Java 101 question. You are using class Image and class Image in the same class. Do you see the difference? Well, Java doesn't see a difference either. In reality you are using com.lowagie.text.Image and java.awt.Image in the same class. Do you see the difference now? You should tell Java when you mean com.lowagie.text.Image, and when java.awt.Image is meant. To solve this, you should use fully qualified names. For instance: com.lowagie.text.Image iTextImage = com.lowagie.text.Image.getInstance(...); java.awt.Image Image = new java.awt.Image(...); This is only necessary when both Image classes are used next to each other. Otherwise you specify the package name in the import. br, Bruno ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
