-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dhiraj Shrivastava wrote:
> I was able to compile my code with itext.jar which I compiled with
> JDK1.3 but at runtime it gives NoClassFoundError exception. See the
> stacktrace below:
>  
> ==============
> com.ibm.ejs.container.CreateFailureException:
> java.lang.reflect.InvocationTargetException; nested exception is:
>  java.lang.reflect.InvocationTargetException
> java.lang.reflect.InvocationTargetException:
> java.lang.NoClassDefFoundError : com/lowagie/text/pdf/PdfWriter
> ======================
>  
> Any idea, why it would happen? Compile time there is no problem only at
> run time it is giving this error.

This looks like a classpath problem and is probably not related to iText
itself but to your local setup if you managed to compile with 1.3.



> Note: If anyone else has got a jar compiled with JDK1.3 then please sare
> it with me.


There is a branch in svn that contains all the changes and support jar
files needed to compile with 1.3. All the changes in the official
version, i.e. the trunk, up to 2.0.4 have been merged in the 1.3 branch.

It's located in:

  https://itext.svn.sourceforge.net/svnroot/itext/branches/iText-jdk13


To generate a 1.3 version:

1) svn co
https://itext.svn.sourceforge.net/svnroot/itext/branches/iText-jdk13
iText-jdk13

2) cd iText-jdk13/src

3) ant jar

The iText jar file named iText-jdk13.jar will be created in the lib
directory.

Note that the jar file is named differently and that the version string
in the source code has also been changed to reflect that the code is
coming from the 1.3 branch. Right now the version string is:

        "iText-jdk13 2.0.4 (by lowagie.com)"

Let me know if you encounter problems using the code in the branch.


Xavier

- --
Xavier Le Vourch
Brittany Software, Inc.
<[EMAIL PROTECTED]>

PGP Key: http://brittanysoftware.com/gpg_key.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG0v1vA3JYBYlsWUcRAvjuAJ4hqxXyuUeYNo0vX74WmuXaA/gJiACeK632
rfCu4h9uUxYeUV+Hb22umto=
=DF45
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
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