Hi,

I found itext looking for a pdf drawing tool (like figures made with 
xfig, converted from eps and others). Being mostly curious about the pdf 
reading functions I went though chapter 1 of the tutorial and tried to 
run Chap0112.java in an applet.

I used the jar versions of iText, and the java source compiled without a 
single warning. But trying to run it I came across the following 
exception: java.lang.NoClassDefFoundError: com/lowagie/text/Watermark.

I had tried the complete source tree of iText before, and 
/usr/local/itext/comlowagie/text/Watermark.class did exist, but I also 
got the error there. I also got the watermark.jpg file in the directory 
from which I ran the applet.

I am not a java expert, but judging from the tutorial I'd expect to be 
able to run the example straight away.

Am I missing something?

Regards,
Thanks for any advice

Alle Meije Wink


My session:
#########################################################################

bash-2.05$ ls /usr/local/itext
itext-0.92.jar  iTextHYPH.jar  itext-xml-0.92.jar  tutorial

bash-2.05$ echo $CLASSPATH
/usr/local/itext-0.92/itext-0.92.jar

bash-2.05$ ls
Chap0112.class  Chap0112.java  Chap0703.pdf  ReadPDF.html  watermark.jpg

bash-2.05$ javac Chap0112.java

bash-2.05$ appletviewer ReadPDF.html
java.lang.NoClassDefFoundError: com/lowagie/text/Watermark
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:1576)
        at java.lang.Class.getConstructor0(Class.java:1748)
        at java.lang.Class.newInstance0(Class.java:266)
        at java.lang.Class.newInstance(Class.java:249)
        at sun.applet.AppletPanel.createApplet(AppletPanel.java:548)
        at sun.applet.AppletPanel.runLoader(AppletPanel.java:477)
        at sun.applet.AppletPanel.run(AppletPanel.java:290)
        at java.lang.Thread.run(Thread.java:536)

ReadPDF.html:
#########################################################################

<HTML>
<APPLET code="Chap0112" width=800 height=800>
</APPLET>
</HTML>




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to