Hello,
I am using the itextpdf-5.1.2.jar to convert a scanned image to a PDF. I
reference the iText classes in a java applet that runs fine when I launch it
from within an Eclipse IDE, however when I attempt to deploy it to a
directory and run it from a web browser, I get an exception:
java.lang.NoClassDefFoundError: com/itextpdf/text/Image
during the call:
com.itextpdf.text.Image iTextImage =
com.itextpdf.text.Image.getInstance(image, null);
which causes the process to fail. I am using a Java Web Start approach with
a JNLP that looks something like this:
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="." href="">
<information>
<title>Capture Applet</title>
<vendor>Me</vendor>
</information>
<resources>
<!-- Application Resources -->
<j2se version="1.6+"
href="http://java.sun.com/products/autodl/j2se" />
<jar href="CaptureApplet.jar" main="true" />
<jar href="itextpdf-5.1.2.jar" />
</resources>
<applet-desc
name="Capture Applet"
main-class="CaptureApplet"
width="1"
height="1">
</applet-desc>
<update check="background"/>
</jnlp>
It seems to find the classes from my CaptureApplet.jar just fine but appears
to have difficulty with the classes in itextpdf-5.1.2.jar.
Any assistance would be appreciated,
Steve
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php