Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.java > #9126
| From | Emmanuel Bourg <ebourg@apache.org> |
|---|---|
| Newsgroups | linux.debian.maint.java |
| Subject | Re: Problems to find classes that should be in itext1.jar |
| Date | 2016-05-22 22:20 +0200 |
| Message-ID | <rBI0V-568-1@gated-at.bofh.it> (permalink) |
| References | <rBdq9-2Xg-5@gated-at.bofh.it> <rBlH4-87j-9@gated-at.bofh.it> <rBHxU-4H7-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Le 22/05/2016 à 21:43, Andreas Tille a écrit : > CLASSPATH=/usr/share/java/commons-httpclient.jar:/usr/share/java/commons-lang.jar:/usr/share/java/itext1-1.4.jar jh_build --javacopts='-target 1.7' --javacopts='-source 1.7' mesquite.jar Source LibrarySource > find Source LibrarySource -name *.java -and -type f -print0 | xargs -s 512000 -0 /usr/lib/jvm/default-java/bin/javac -g -cp /usr/share/java/commons-httpclient.jar:/usr/share/java/commons-lang.jar:/usr/share/java/itext1-1.4.jar:debian/_jh_build.mesquite -d debian/_jh_build.mesquite -target 1.7 -source 1.7 > warning: [options] bootstrap class path not set in conjunction with -source 1.7 > LibrarySource/com/lowagie/text/Rectangle.java:53: error: package headless.awt does not exist > import headless.awt.Color; > ^ > LibrarySource/com/lowagie/text/pdf/PdfWriter.java:53: error: package headless.awt does not exist > import headless.awt.Color; > ^ iText doesn't contain any headless.awt.* class. It looks like the iText code was copied and modified the turn the 'import java.awt.*' statements into 'import headless.awt.*'. I guess as some point they copied and relocated the java.awt classes to disable the exceptions on systems without a display. Since Java 1.4 this can be avoided by setting the java.awt.headless property to true. I think you have two options: 1. remove the iText source files from the LibrarySource directory and use the libitext1-java package instead 2. if it doesn't work because the itext code was further modified, patch it and replace 'headless.awt' with 'java.awt' Emmanuel Bourg
Back to linux.debian.maint.java | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Problems to find classes that should be in itext1.jar Andreas Tille <andreas@an3as.eu> - 2016-05-21 13:40 +0200
Re: Problems to find classes that should be in itext1.jar Emmanuel Bourg <ebourg@apache.org> - 2016-05-21 22:30 +0200
Re: Problems to find classes that should be in itext1.jar Andreas Tille <tille@debian.org> - 2016-05-22 21:50 +0200
Re: Problems to find classes that should be in itext1.jar Emmanuel Bourg <ebourg@apache.org> - 2016-05-22 22:20 +0200
Re: Problems to find classes that should be in itext1.jar Andreas Tille <tille@debian.org> - 2016-05-23 16:00 +0200
Re: Problems to find classes that should be in itext1.jar Emmanuel Bourg <ebourg@apache.org> - 2016-05-23 16:20 +0200
Re: Problems to find classes that should be in itext1.jar Andreas Tille <andreas@an3as.eu> - 2016-05-23 16:50 +0200
Re: Problems to find classes that should be in itext1.jar Emmanuel Bourg <ebourg@apache.org> - 2016-05-23 17:00 +0200
Re: Problems to find classes that should be in itext1.jar Andreas Tille <andreas@an3as.eu> - 2016-05-25 17:40 +0200
csiph-web