tenshi
tenshi

Reputation: 26566

Add 2.x together with 5.x verison of iText to the classpath

I would like to add 2 versions of iText (2.x and 5.x) in the classpath. As far as I saw, they have different packages, so I assume, that it should work fine.

Are there any known problems with this setup?

I want to make this mostly because we have existing classes using iText 5.x, but I now want to use JasperReports (in addition to existing stuff), which require iText version 2.x.

Upvotes: 1

Views: 467

Answers (1)

mkl
mkl

Reputation: 95898

The iText versions can coexist but some dependencies may cause problems, namely BouncyCastle 1.46 and earlier (for iText 2.x) and 1.47 or meanwhile even 1.48 (for iText trunk). Thus, security provider related features might be hampered.

If that is an issue for you, simply use the Android-GAE port of iText that has a dependency on SpongyCastle instead of BouncyCastle as indicated by @BrunoLowagie. SpongyCastle is a BouncyCastle spin-off with a different package structure to allow for different BC flavours to be used at the same time

Upvotes: 1

Related Questions