See http://itext.ugent.be/library/question.php?id=19.
Paulo ----- Original Message ----- From: "Tim van der Leeuw" <[EMAIL PROTECTED]> To: <iText-questions@lists.sourceforge.net> Sent: Thursday, November 09, 2006 8:58 AM Subject: [iText-questions] iText and JDK1.3? > Hi, > > According to documentation, JDK1.3 is still supported by iText. However, > I'm > having trouble getting it to compile with JDK1.3. > > I tried searching the mailing list archives, and it turns up some > references > to troubles that might exist with classes in the package > com.lowagie.toolsand that this package can be safely removed. > > However, when compiling with the JDK1.3 I'm also getting complaints about > class > > com.lowagie.text.pdf.MappedRandomAccessFile > > Because it uses some classes from the java.nio package. This class is > appearantly recently added; it has a date-created of 6.9.2006 (which means > it's either from September, or from June... but in either case quite > recent) > > Another problem is that the constant > > java.awt.Font.LAYOUT_LEFT_TO_RIGHT > > Cannot be resolved at line 356 in class > > com.lowagie.text.pdf.PdfGraphics2D > > And lastly, in class > > com.lowagie.text.pdf.codec.postscript.PAParser > > An attempt is made to use a constructor for RuntimeException that takes > another exception as it's argument (this wasn't added until JDK1.4); > happens > at lines 268 and 280. > > > I understand that the world would love to move on to newer versions of the > JDK than 1.3.1 and so would I, but for the moment, unfortunately, I'll > have > to deliver something using 1.3 and I'd really like to use iText for the > PDF > generation as it seems to deliver the features I need. > > > I could solve the problem with the RuntimeExceptionConstructor myself > quite > easily. > The class 'com.lowagie.text.pdf.MappedRandomAccessFile' seems to be used > in > only 1 place, and I could perhaps modify the source to use the standard > RandomAccessFile instead and it might all just work. > I'm not so sure though what to do about the missing constant. > > Also, I don't like modifying the sources of a library which I downloaded, > because it will cause problems when newer versions are installed. > > So I wonder what's the most sane advice which one could offer to me on > getting iText working with older JDK versions? > > Thanks in advance, > > --Tim van der Leeuw > -------------------------------------------------------------------------------- > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 -------------------------------------------------------------------------------- > _______________________________________________ > iText-questions mailing list > iText-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions