This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Error compiling itext file
- From: Bob Bell <bbell at hp dot com>
- To: java at gcc dot gnu dot org
- Date: Fri, 19 Mar 2004 00:05:19 -0500
- Subject: Error compiling itext file
I'm using gcj to attempt to compile itext, albeit for the first time, so
apologies if I'm missing something key. In general it works okay, but
there's one file, com/lowagie/text/pdf/PdfCopy.java, that gcj bombs on.
For this file, I get errors like:
com/lowagie/text/pdf/PdfCopy.java: In class `com.lowagie.text.pdf.PdfCopy':
com/lowagie/text/pdf/PdfCopy.java: In method `com.lowagie.text.pdf.PdfCopy.copyIndirect(com.lowagie.text.pdf.PRIndirectReference)':
com/lowagie/text/pdf/PdfCopy.java:177: error: Can't find constructor `com.lowagie.text.pdf.PdfCopy$RefKey(Lcom/lowagie/text/pdf/PRIndirectReference;)' in type `com.lowagie.text.pdf.PdfCopy$RefKey'. Candidates are:
`(com.lowagie.text.pdf.PdfCopy,com.lowagie.text.pdf.PdfIndirectReference)' in `com.lowagie.text.pdf.PdfCopy$RefKey'
`(com.lowagie.text.pdf.PdfCopy,com.lowagie.text.pdf.PRIndirectReference)' in `com.lowagie.text.pdf.PdfCopy$RefKey'.
RefKey key = new RefKey(in);
I actually get five errors like the above that all appear to be the
same. I can't see the problem, though admittedly it's a little cryptic
to me. Sun's javac handles the file just fine. This file is part of
the zip at
http://prdownloads.sourceforge.net/itextpdf/itext-paulo-jdk1.1-129.zip.
I'll attempt to attach PdfCopy.java if the list lets me.
I'm very interested in finding out what's wrong here. Please include me
in any and all replies, as I'm not subscribed to the list at this time.
My copy of gcj reports that it is:
gcj (GCC) 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I'm attempting to compile PdfCopy.java with:
gcj --encoding=ISO-8859-1 -C com/lowagie/text/pdf/PdfCopy.java
Thanks!
--
Bob Bell <bbell@hp.com>
-------------------------------------------------------------------------
"Think of me as CVS with brains."
-- Linus Torvalds, creator and maintainer of the Linux kernel
Attachment:
PdfCopy.java
Description: Text document