I have a simple code applet
Why he does not work:(
Applet have a all permissions.He can save or write.
code:


import java.awt.*;
import java.applet.*;

import java.io.FileOutputStream;
import java.io.IOException;

import com.lowagie.text.Document;
import com.lowagie.text.DocumentException;
import com.lowagie.text.Paragraph;
import com.lowagie.text.pdf.PdfWriter;

public class VVV extends Applet {

public void init()
{

System.out.println("Hello World");

Document document = new Document();
try {

PdfWriter.getInstance(document, new FileOutputStream
("HelloWorld.pdf"));

document.open();

document.add(new Paragraph ("Hello World"));

} catch (DocumentException de) {
System.err.println(de.getMessage ());
} catch (IOException ioe) {
System.err.println(ioe.getMessage ());
}
document.close();
}


Exception:

java.lang.NoClassDefFoundError:
com/lowagie/text/DocumentException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors
(Class.java:2328)
at java.lang.Class.getConstructor0(Class.java:2640)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at sun.applet.AppletPanel.createApplet
(AppletPanel.java:712)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:641)
at sun.applet.AppletPanel.run(AppletPanel.java:320)
at java.lang.Thread.run(Thread.java:595)

I using JCreator
And I added a iText jar file
Please help my:(
-- 
View this message in context: 
http://www.nabble.com/iText-and-Applet-tf2965498.html#a8296967
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to