Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.java > #9122 > unrolled thread
| Started by | Andreas Tille <andreas@an3as.eu> |
|---|---|
| First post | 2016-05-21 13:40 +0200 |
| Last post | 2016-05-25 17:40 +0200 |
| Articles | 9 — 3 participants |
Back to article view | Back to linux.debian.maint.java
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
| From | Andreas Tille <andreas@an3as.eu> |
|---|---|
| Date | 2016-05-21 13:40 +0200 |
| Subject | Problems to find classes that should be in itext1.jar |
| Message-ID | <rBdq9-2Xg-5@gated-at.bofh.it> |
Hi,
I need help with another Java package of the Debian Med team which you
can find in git[1]. I have stripped all JARs from the mesquite source
tarball and tried to work down the list of missing classes. I'm
stumbling upon classes which should be found in itext1.jar but the build
process can't finde these. It would be great if some kind soul could
have a look.
Kind regards
Andreas.
[1] https://anonscm.debian.org/git/debian-med/mesquite.git
--
http://fam-tille.de
[toc] | [next] | [standalone]
| From | Emmanuel Bourg <ebourg@apache.org> |
|---|---|
| Date | 2016-05-21 22:30 +0200 |
| Message-ID | <rBlH4-87j-9@gated-at.bofh.it> |
| In reply to | #9122 |
Le 21/05/2016 à 13:34, Andreas Tille a écrit : > I'm > stumbling upon classes which should be found in itext1.jar but the build > process can't finde these. What are the missing classes? Emmanuel Bourg
[toc] | [prev] | [next] | [standalone]
| From | Andreas Tille <tille@debian.org> |
|---|---|
| Date | 2016-05-22 21:50 +0200 |
| Message-ID | <rBHxU-4H7-9@gated-at.bofh.it> |
| In reply to | #9123 |
On Sat, May 21, 2016 at 10:28:50PM +0200, Emmanuel Bourg wrote:
> Le 21/05/2016 à 13:34, Andreas Tille a écrit :
>
> > I'm
> > stumbling upon classes which should be found in itext1.jar but the build
> > process can't finde these.
>
> What are the missing classes?
...
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;
^
LibrarySource/com/lowagie/text/pdf/PdfContentByte.java:52: error: package headless.awt does not exist
import headless.awt.Color;
^
LibrarySource/com/lowagie/text/pdf/PdfContentByte.java:54: error: package headless.awt.geom does not exist
import headless.awt.geom.AffineTransform;
^
LibrarySource/com/lowagie/text/pdf/PdfContentByte.java:55: error: package headless.awt.print does not exist
import headless.awt.print.PrinterJob;
^
LibrarySource/com/lowagie/text/Image.java:60: error: package headless.awt.color does not exist
import headless.awt.color.ICC_Profile;
^
LibrarySource/com/lowagie/text/Rectangle.java:118: error: cannot find symbol
protected Color color = null;
^
symbol: class Color
location: class Rectangle
LibrarySource/com/lowagie/text/Rectangle.java:121: error: cannot find symbol
protected Color borderColorLeft = null;
^
symbol: class Color
location: class Rectangle
LibrarySource/com/lowagie/text/Rectangle.java:124: error: cannot find symbol
protected Color borderColorRight = null;
^
symbol: class Color
location: class Rectangle
LibrarySource/com/lowagie/text/Rectangle.java:127: error: cannot find symbol
protected Color borderColorTop = null;
^
symbol: class Color
location: class Rectangle
LibrarySource/com/lowagie/text/Rectangle.java:130: error: cannot find symbol
protected Color borderColorBottom = null;
^
symbol: class Color
location: class Rectangle
LibrarySource/com/lowagie/text/Rectangle.java:149: error: cannot find symbol
protected Color background = null;
^
symbol: class Color
location: class Rectangle
LibrarySource/com/lowagie/text/Rectangle.java:412: error: cannot find symbol
public void setBorderColor(Color value) {
^
symbol: class Color
location: class Rectangle
LibrarySource/com/lowagie/text/Rectangle.java:420: error: cannot find symbol
public void setBorderColorRight(Color value)
^
symbol: class Color
location: class Rectangle
LibrarySource/com/lowagie/text/Rectangle.java:429: error: cannot find symbol
public void setBorderColorLeft(Color value)
^
symbol: class Color
location: class Rectangle
LibrarySource/com/lowagie/text/Rectangle.java:438: error: cannot find symbol
public void setBorderColorTop(Color value)
^
symbol: class Color
location: class Rectangle
LibrarySource/com/lowagie/text/Rectangle.java:447: error: cannot find symbol
public void setBorderColorBottom(Color value)
^
symbol: class Color
location: class Rectangle
LibrarySource/com/lowagie/text/Rectangle.java:459: error: cannot find symbol
public void setBackgroundColor(Color value) {
^
symbol: class Color
location: class Rectangle
LibrarySource/com/lowagie/text/Rectangle.java:633: error: cannot find symbol
public Color borderColor() {
^
symbol: class Color
location: class Rectangle
LibrarySource/com/lowagie/text/Rectangle.java:643: error: cannot find symbol
public Color backgroundColor() {
^
symbol: class Color
location: class Rectangle
LibrarySource/com/lowagie/text/Rectangle.java:706: error: cannot find symbol
public Color getBorderColorLeft()
^
symbol: class Color
location: class Rectangle
LibrarySource/com/lowagie/text/Rectangle.java:715: error: cannot find symbol
public Color getBorderColorRight()
^
symbol: class Color
location: class Rectangle
LibrarySource/com/lowagie/text/Rectangle.java:724: error: cannot find symbol
public Color getBorderColorTop()
^
symbol: class Color
location: class Rectangle
LibrarySource/com/lowagie/text/Rectangle.java:733: error: cannot find symbol
public Color getBorderColorBottom()
^
symbol: class Color
location: class Rectangle
LibrarySource/com/lowagie/text/pdf/PdfDocument.java:53: error: package headless.awt does not exist
import headless.awt.Color;
^
LibrarySource/com/lowagie/text/pdf/PdfICCBased.java:48: error: package headless.awt.color does not exist
import headless.awt.color.ICC_Profile;
^
LibrarySource/com/lowagie/text/Table.java:56: error: package headless.awt does not exist
import headless.awt.Color;
^
LibrarySource/com/lowagie/text/Table.java:57: error: package headless.awt does not exist
import headless.awt.Dimension;
^
LibrarySource/com/lowagie/text/Table.java:58: error: package headless.awt does not exist
import headless.awt.Point;
^
LibrarySource/com/lowagie/text/pdf/PdfOutline.java:58: error: package headless.awt does not exist
import headless.awt.Color;
^
LibrarySource/com/lowagie/text/pdf/PdfSpotColor.java:53: error: package headless.awt does not exist
import headless.awt.Color;
^
LibrarySource/com/lowagie/text/pdf/PdfWriter.java:1526: error: cannot find symbol
ColorDetails addSimplePatternColorspace(Color color) {
^
symbol: class Color
location: class PdfWriter
LibrarySource/com/lowagie/text/pdf/PdfShading.java:49: error: package headless.awt does not exist
import headless.awt.Color;
^
LibrarySource/com/lowagie/text/pdf/PdfPatternPainter.java:50: error: package headless.awt does not exist
import headless.awt.Color;
^
LibrarySource/com/lowagie/text/pdf/PdfAnnotation.java:55: error: package headless.awt does not exist
import headless.awt.Color;
^
LibrarySource/com/lowagie/text/pdf/PdfContentByte.java:1680: error: cannot find symbol
public PdfPatternPainter createPattern(float width, float height, float xstep, float ystep, Color color) {
^
symbol: class Color
location: class PdfContentByte
LibrarySource/com/lowagie/text/pdf/PdfContentByte.java:1702: error: cannot find symbol
public PdfPatternPainter createPattern(float width, float height, Color color) {
^
symbol: class Color
location: class PdfContentByte
LibrarySource/com/lowagie/text/pdf/PdfContentByte.java:1905: error: cannot find symbol
public void setColorStroke(Color color) {
^
symbol: class Color
location: class PdfContentByte
LibrarySource/com/lowagie/text/pdf/PdfContentByte.java:1942: error: cannot find symbol
public void setColorFill(Color color) {
^
symbol: class Color
location: class PdfContentByte
LibrarySource/com/lowagie/text/pdf/PdfContentByte.java:2023: error: cannot find symbol
void outputColorNumbers(Color color, float tint) {
^
symbol: class Color
location: class PdfContentByte
LibrarySource/com/lowagie/text/pdf/PdfContentByte.java:2055: error: cannot find symbol
public void setPatternFill(PdfPatternPainter p, Color color) {
^
symbol: class Color
location: class PdfContentByte
LibrarySource/com/lowagie/text/pdf/PdfContentByte.java:2067: error: cannot find symbol
public void setPatternFill(PdfPatternPainter p, Color color, float tint) {
^
symbol: class Color
location: class PdfContentByte
LibrarySource/com/lowagie/text/pdf/PdfContentByte.java:2085: error: cannot find symbol
public void setPatternStroke(PdfPatternPainter p, Color color) {
^
symbol: class Color
location: class PdfContentByte
LibrarySource/com/lowagie/text/pdf/PdfContentByte.java:2097: error: cannot find symbol
public void setPatternStroke(PdfPatternPainter p, Color color, float tint) {
^
symbol: class Color
location: class PdfContentByte
LibrarySource/com/lowagie/text/pdf/PdfContentByte.java:2514: error: cannot find symbol
public java.awt.Graphics2D createPrinterGraphicsShapes(float width, float height, PrinterJob printerJob) {
^
symbol: class PrinterJob
location: class PdfContentByte
LibrarySource/com/lowagie/text/pdf/PdfContentByte.java:2535: error: cannot find symbol
public java.awt.Graphics2D createPrinterGraphics(float width, float height, PrinterJob printerJob) {
^
symbol: class PrinterJob
location: class PdfContentByte
LibrarySource/com/lowagie/text/pdf/PdfContentByte.java:2560: error: cannot find symbol
public java.awt.Graphics2D createPrinterGraphics(float width, float height, boolean convertImagesToJPEG, float quality, PrinterJob printerJob) {
^
symbol: class PrinterJob
location: class PdfContentByte
LibrarySource/com/lowagie/text/pdf/PdfContentByte.java:2585: error: cannot find symbol
public java.awt.Graphics2D createPrinterGraphicsShapes(float width, float height, boolean convertImagesToJPEG, float quality, PrinterJob printerJob) {
^
symbol: class PrinterJob
location: class PdfContentByte
LibrarySource/com/lowagie/text/pdf/FontMapper.java:50: error: package headless.awt does not exist
import headless.awt.Font;
^
LibrarySource/com/lowagie/text/pdf/PdfContentByte.java:2608: error: cannot find symbol
public java.awt.Graphics2D createPrinterGraphics(float width, float height, FontMapper fontMapper, PrinterJob printerJob) {
^
symbol: class PrinterJob
location: class PdfContentByte
LibrarySource/com/lowagie/text/pdf/PdfContentByte.java:2635: error: cannot find symbol
public java.awt.Graphics2D createPrinterGraphics(float width, float height, FontMapper fontMapper, boolean convertImagesToJPEG, float quality, PrinterJob printerJob) {
^
symbol: class PrinterJob
location: class PdfContentByte
LibrarySource/com/lowagie/text/pdf/PdfContentByte.java:2707: error: cannot find symbol
public void transform(AffineTransform af) {
^
symbol: class AffineTransform
location: class PdfContentByte
LibrarySource/com/lowagie/text/Image.java:239: error: cannot find symbol
protected ICC_Profile profile = null;
^
symbol: class ICC_Profile
location: class Image
LibrarySource/com/lowagie/text/Image.java:1620: error: cannot find symbol
public void tagICC(ICC_Profile profile) {
^
symbol: class ICC_Profile
location: class Image
LibrarySource/com/lowagie/text/Image.java:1638: error: cannot find symbol
public ICC_Profile getICCProfile() {
^
symbol: class ICC_Profile
location: class Image
LibrarySource/com/lowagie/text/pdf/PdfICCBased.java:62: error: cannot find symbol
PdfICCBased(ICC_Profile profile) {
^
symbol: class ICC_Profile
location: class PdfICCBased
LibrarySource/com/lowagie/text/Table.java:172: error: cannot find symbol
private Point curPosition = new Point(0, 0);
^
symbol: class Point
location: class Table
LibrarySource/com/lowagie/text/Cell.java:53: error: package headless.awt does not exist
import headless.awt.Color;
^
LibrarySource/com/lowagie/text/Table.java:566: error: cannot find symbol
public void addCell(Cell aCell, Point aLocation) throws BadElementException {
^
symbol: class Point
location: class Table
LibrarySource/com/lowagie/text/Table.java:622: error: cannot find symbol
public void addCell(Phrase content, Point location) throws BadElementException {
^
symbol: class Point
location: class Table
LibrarySource/com/lowagie/text/Table.java:661: error: cannot find symbol
public void addCell(String content, Point location) throws BadElementException {
^
symbol: class Point
location: class Table
LibrarySource/com/lowagie/text/Table.java:698: error: cannot find symbol
public void insertTable(Table aTable, Point aLocation) {
^
symbol: class Point
location: class Table
LibrarySource/com/lowagie/text/Table.java:780: error: cannot find symbol
public void setDefaultCellBorderColor(Color color) {
^
symbol: class Color
location: class Table
LibrarySource/com/lowagie/text/Table.java:791: error: cannot find symbol
public void setDefaultCellBackgroundColor(Color color) {
^
symbol: class Color
location: class Table
LibrarySource/com/lowagie/text/Table.java:1263: error: cannot find symbol
public Dimension getDimension() {
^
symbol: class Dimension
location: class Table
LibrarySource/com/lowagie/text/Table.java:1523: error: cannot find symbol
private boolean isValidLocation(Cell aCell, Point aLocation) {
^
symbol: class Point
location: class Table
LibrarySource/com/lowagie/text/Table.java:1559: error: cannot find symbol
private void placeCell(ArrayList someRows, Cell aCell, Point aPosition) {
^
symbol: class Point
location: class Table
LibrarySource/com/lowagie/text/Table.java:1663: error: cannot find symbol
private void setCurrentLocationToNextValidPosition(Point aLocation) {
^
symbol: class Point
location: class Table
LibrarySource/com/lowagie/text/pdf/PdfPRow.java:58: error: package headless.awt does not exist
import headless.awt.Color;
^
LibrarySource/com/lowagie/text/pdf/PdfOutline.java:104: error: cannot find symbol
private Color color;
^
symbol: class Color
location: class PdfOutline
LibrarySource/com/lowagie/text/pdf/PdfOutline.java:514: error: cannot find symbol
public Color getColor() {
^
symbol: class Color
location: class PdfOutline
LibrarySource/com/lowagie/text/pdf/PdfOutline.java:522: error: cannot find symbol
public void setColor(Color color) {
^
symbol: class Color
location: class PdfOutline
LibrarySource/com/lowagie/text/pdf/PdfSpotColor.java:70: error: cannot find symbol
public Color altcs;
^
symbol: class Color
location: class PdfSpotColor
LibrarySource/com/lowagie/text/pdf/PdfSpotColor.java:81: error: cannot find symbol
public PdfSpotColor(String name, float tint, Color altcs) {
^
symbol: class Color
location: class PdfSpotColor
LibrarySource/com/lowagie/text/pdf/PdfSpotColor.java:99: error: cannot find symbol
public Color getAlternativeCS() {
^
symbol: class Color
location: class PdfSpotColor
LibrarySource/com/lowagie/text/pdf/PdfShading.java:69: error: cannot find symbol
private Color cspace;
^
symbol: class Color
location: class PdfShading
LibrarySource/com/lowagie/text/pdf/PdfShading.java:82: error: cannot find symbol
protected void setColorSpace(Color color) {
^
symbol: class Color
location: class PdfShading
LibrarySource/com/lowagie/text/pdf/PdfShading.java:112: error: cannot find symbol
Color getColorSpace() {
^
symbol: class Color
location: class PdfShading
LibrarySource/com/lowagie/text/pdf/PdfShading.java:120: error: cannot find symbol
public static void checkCompatibleColors(Color c1, Color c2) {
^
symbol: class Color
location: class PdfShading
LibrarySource/com/lowagie/text/pdf/PdfShading.java:120: error: cannot find symbol
public static void checkCompatibleColors(Color c1, Color c2) {
^
symbol: class Color
location: class PdfShading
LibrarySource/com/lowagie/text/pdf/PdfShading.java:131: error: cannot find symbol
public static float[] getColorArray(Color color) {
^
symbol: class Color
location: class PdfShading
LibrarySource/com/lowagie/text/pdf/PdfShading.java:152: error: cannot find symbol
public static PdfShading type1(PdfWriter writer, Color colorSpace, float domain[], float tMatrix[], PdfFunction function) {
^
symbol: class Color
location: class PdfShading
LibrarySource/com/lowagie/text/pdf/PdfShading.java:166: error: cannot find symbol
public static PdfShading type2(PdfWriter writer, Color colorSpace, float coords[], float domain[], PdfFunction function, boolean extend[]) {
^
symbol: class Color
location: class PdfShading
LibrarySource/com/lowagie/text/pdf/PdfShading.java:184: error: cannot find symbol
public static PdfShading type3(PdfWriter writer, Color colorSpace, float coords[], float domain[], PdfFunction function, boolean extend[]) {
^
symbol: class Color
location: class PdfShading
LibrarySource/com/lowagie/text/pdf/PdfShading.java:191: error: cannot find symbol
public static PdfShading simpleAxial(PdfWriter writer, float x0, float y0, float x1, float y1, Color startColor, Color endColor, boolean extendStart, boolean extendEnd) {
^
symbol: class Color
location: class PdfShading
LibrarySource/com/lowagie/text/pdf/PdfShading.java:191: error: cannot find symbol
public static PdfShading simpleAxial(PdfWriter writer, float x0, float y0, float x1, float y1, Color startColor, Color endColor, boolean extendStart, boolean extendEnd) {
^
symbol: class Color
location: class PdfShading
LibrarySource/com/lowagie/text/pdf/PdfShading.java:198: error: cannot find symbol
public static PdfShading simpleAxial(PdfWriter writer, float x0, float y0, float x1, float y1, Color startColor, Color endColor) {
^
symbol: class Color
location: class PdfShading
LibrarySource/com/lowagie/text/pdf/PdfShading.java:198: error: cannot find symbol
public static PdfShading simpleAxial(PdfWriter writer, float x0, float y0, float x1, float y1, Color startColor, Color endColor) {
^
symbol: class Color
location: class PdfShading
LibrarySource/com/lowagie/text/pdf/PdfShading.java:202: error: cannot find symbol
public static PdfShading simpleRadial(PdfWriter writer, float x0, float y0, float r0, float x1, float y1, float r1, Color startColor, Color endColor, boolean extendStart, boolean extendEnd) {
^
symbol: class Color
location: class PdfShading
LibrarySource/com/lowagie/text/pdf/PdfShading.java:202: error: cannot find symbol
public static PdfShading simpleRadial(PdfWriter writer, float x0, float y0, float r0, float x1, float y1, float r1, Color startColor, Color endColor, boolean extendStart, boolean extendEnd) {
^
symbol: class Color
location: class PdfShading
LibrarySource/com/lowagie/text/pdf/PdfShading.java:209: error: cannot find symbol
public static PdfShading simpleRadial(PdfWriter writer, float x0, float y0, float r0, float x1, float y1, float r1, Color startColor, Color endColor) {
^
symbol: class Color
location: class PdfShading
LibrarySource/com/lowagie/text/pdf/PdfShading.java:209: error: cannot find symbol
public static PdfShading simpleRadial(PdfWriter writer, float x0, float y0, float r0, float x1, float y1, float r1, Color startColor, Color endColor) {
^
symbol: class Color
location: class PdfShading
LibrarySource/com/lowagie/text/pdf/PdfPatternPainter.java:60: error: cannot find symbol
protected Color defaultColor;
^
symbol: class Color
location: class PdfPatternPainter
LibrarySource/com/lowagie/text/pdf/PdfPatternPainter.java:82: error: cannot find symbol
PdfPatternPainter(PdfWriter wr, Color defaultColor) {
^
symbol: class Color
location: class PdfPatternPainter
LibrarySource/com/lowagie/text/pdf/PdfPatternPainter.java:182: error: cannot find symbol
public Color getDefaultColor() {
^
symbol: class Color
location: class PdfPatternPainter
LibrarySource/com/lowagie/text/pdf/PdfPatternPainter.java:326: error: cannot find symbol
public void setColorStroke(Color color) {
^
symbol: class Color
location: class PdfPatternPainter
LibrarySource/com/lowagie/text/pdf/PdfPatternPainter.java:334: error: cannot find symbol
public void setColorFill(Color color) {
^
symbol: class Color
location: class PdfPatternPainter
LibrarySource/com/lowagie/text/pdf/PdfPatternPainter.java:366: error: cannot find symbol
public void setPatternFill(PdfPatternPainter p, Color color, float tint) {
^
symbol: class Color
location: class PdfPatternPainter
LibrarySource/com/lowagie/text/pdf/PdfPatternPainter.java:374: error: cannot find symbol
public void setPatternStroke(PdfPatternPainter p, Color color, float tint) {
^
symbol: class Color
location: class PdfPatternPainter
LibrarySource/com/lowagie/text/pdf/PdfAnnotation.java:544: error: cannot find symbol
public void setColor(Color color) {
^
symbol: class Color
location: class PdfAnnotation
Source/org/apache/hivemind/util/PropertyAdaptor.java:166: warning: non-varargs call of varargs method with inexact argument type for last parameter;
return _readMethod.invoke(target, null);
^
cast to Object for a varargs call
cast to Object[] for a non-varargs call and to suppress this warning
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
100 errors
2 warnings
debian/rules:21: recipe for target 'override_dh_auto_build' failed
make[1]: *** [override_dh_auto_build] Error 123
make[1]: Leaving directory '/home/andreas/debian-maintain/alioth/debian-med_git/build-area/mesquite-3.04+dfsg'
debian/rules:12: die Regel für Ziel „build“ scheiterte
make: *** [build] Fehler 2
dpkg-buildpackage: Fehler: Fehler-Exitstatus von debian/rules build war 2
--
http://fam-tille.de
[toc] | [prev] | [next] | [standalone]
| From | Emmanuel Bourg <ebourg@apache.org> |
|---|---|
| Date | 2016-05-22 22:20 +0200 |
| Message-ID | <rBI0V-568-1@gated-at.bofh.it> |
| In reply to | #9125 |
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
[toc] | [prev] | [next] | [standalone]
| From | Andreas Tille <tille@debian.org> |
|---|---|
| Date | 2016-05-23 16:00 +0200 |
| Message-ID | <rBYyJ-6yX-13@gated-at.bofh.it> |
| In reply to | #9126 |
Hi Emmanuel,
On Sun, May 22, 2016 at 10:18:58PM +0200, Emmanuel Bourg wrote:
>
> 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'
Seems this worked from the itext part. I was running into other problems
that are basically cause by several Mac specific things I'd tried to get
rid of[1]. I admit I do not have a very good feeling by fiddling so much
with the code and I have some remaining errors like:
...
CLASSPATH=/usr/share/java/commons-httpclient.jar:/usr/share/java/commons-lang.jar:/usr/share/java/dom4j.jar:/usr/share/java/itext1-1.4.jar:/usr/share/java/pal-cvs.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/dom4j.jar:/usr/share/java/itext1-1.4.jar:/usr/share/java/pal-cvs.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
Source/mesquite/genesis/lib/RateMatrixGTRModel.java:29: error: cannot find symbol
TransitionProbability transProbs = null;
^
symbol: class TransitionProbability
location: class RateMatrixGTRModel
Source/org/apache/hivemind/util/PropertyAdaptor.java:166: warning: non-varargs call of varargs method with inexact argument type for last parameter;
return _readMethod.invoke(target, null);
^
cast to Object for a varargs call
cast to Object[] for a non-varargs call and to suppress this warning
Source/mesquite/lib/MesquiteFile.java:1068: error: cannot find symbol
MRJOSType type = MRJFileUtils.getFileCreator(writingFile);
^
symbol: class MRJOSType
location: class MesquiteFile
Source/mesquite/lib/MesquiteFile.java:1068: error: cannot find symbol
MRJOSType type = MRJFileUtils.getFileCreator(writingFile);
^
symbol: variable MRJFileUtils
location: class MesquiteFile
Source/mesquite/lib/MesquiteFile.java:1103: error: cannot find symbol
try {MRJFileUtils.setFileTypeAndCreator(writingFile, new MRJOSType("TEXT"), new MRJOSType(setFileType));}
^
symbol: class MRJOSType
location: class MesquiteFile
Source/mesquite/lib/MesquiteFile.java:1103: error: cannot find symbol
try {MRJFileUtils.setFileTypeAndCreator(writingFile, new MRJOSType("TEXT"), new MRJOSType(setFileType));}
^
symbol: class MRJOSType
location: class MesquiteFile
Source/mesquite/lib/MesquiteFile.java:1103: error: cannot find symbol
try {MRJFileUtils.setFileTypeAndCreator(writingFile, new MRJOSType("TEXT"), new MRJOSType(setFileType));}
^
symbol: variable MRJFileUtils
location: class MesquiteFile
Any further hints are welcome
Andreas.
[1] https://anonscm.debian.org/cgit/debian-med/mesquite.git/tree/debian/patches/do_not_import_apple_jar.patch
--
http://fam-tille.de
[toc] | [prev] | [next] | [standalone]
| From | Emmanuel Bourg <ebourg@apache.org> |
|---|---|
| Date | 2016-05-23 16:20 +0200 |
| Message-ID | <rBYS5-6Up-3@gated-at.bofh.it> |
| In reply to | #9128 |
Le 23/05/2016 à 15:53, Andreas Tille a écrit : > Source/mesquite/genesis/lib/RateMatrixGTRModel.java:29: error: cannot find symbol > TransitionProbability transProbs = null; > ^ > symbol: class TransitionProbability > location: class RateMatrixGTRModel TransitionProbability.java is in the LibrarySource/pal/substmodel directory, did you remove it from the upstream tarball? > symbol: class MRJOSType > location: class MesquiteFile > Source/mesquite/lib/MesquiteFile.java:1068: error: cannot find symbol > MRJOSType type = MRJFileUtils.getFileCreator(writingFile); If the MRJ stuff is specific to OS X I guess you can remove it. Emmanuel Bourg
[toc] | [prev] | [next] | [standalone]
| From | Andreas Tille <andreas@an3as.eu> |
|---|---|
| Date | 2016-05-23 16:50 +0200 |
| Message-ID | <rBZl7-74g-3@gated-at.bofh.it> |
| In reply to | #9129 |
On Mon, May 23, 2016 at 04:16:32PM +0200, Emmanuel Bourg wrote:
> Le 23/05/2016 à 15:53, Andreas Tille a écrit :
>
> > Source/mesquite/genesis/lib/RateMatrixGTRModel.java:29: error: cannot find symbol
> > TransitionProbability transProbs = null;
> > ^
> > symbol: class TransitionProbability
> > location: class RateMatrixGTRModel
>
> TransitionProbability.java is in the LibrarySource/pal/substmodel
> directory, did you remove it from the upstream tarball?
Yes, since we have packaged this as libpal-java I removed the whole dir
LibrarySource/pal. I need to check this detail.
> > symbol: class MRJOSType
> > location: class MesquiteFile
> > Source/mesquite/lib/MesquiteFile.java:1068: error: cannot find symbol
> > MRJOSType type = MRJFileUtils.getFileCreator(writingFile);
>
> If the MRJ stuff is specific to OS X I guess you can remove it.
But deleting what? Just these very lines featuring MRJ* ?
Kind regards
Andreas.
--
http://fam-tille.de
[toc] | [prev] | [next] | [standalone]
| From | Emmanuel Bourg <ebourg@apache.org> |
|---|---|
| Date | 2016-05-23 17:00 +0200 |
| Message-ID | <rBZuN-77D-9@gated-at.bofh.it> |
| In reply to | #9130 |
Le 23/05/2016 à 16:46, Andreas Tille a écrit : > But deleting what? Just these very lines featuring MRJ* ? Delete the try catch blocks where the MRJ classes appear. Emmanuel Bourg
[toc] | [prev] | [next] | [standalone]
| From | Andreas Tille <andreas@an3as.eu> |
|---|---|
| Date | 2016-05-25 17:40 +0200 |
| Message-ID | <rCJ4B-2Dy-5@gated-at.bofh.it> |
| In reply to | #9131 |
On Mon, May 23, 2016 at 04:55:25PM +0200, Emmanuel Bourg wrote:
> Le 23/05/2016 à 16:46, Andreas Tille a écrit :
>
> > But deleting what? Just these very lines featuring MRJ* ?
>
> Delete the try catch blocks where the MRJ classes appear.
OK, done in Git. I think the only remaining issue is that the Debian
packaged libpal-java does not contain one class. I tried to take this
over from the code copy from mesquite in a patch to libpal-java[1] which
I uploaded as libpal-java 1.5.1+dfsg-2. Unfortunately mesquite does not
build and fails with
...
Source/mesquite/genesis/lib/RateMatrixGTRModel.java:236: error: method getTransitionProbability in class AbstractRateMatrix cannot be applied to given types;
transProbs = palGTR.getTransitionProbability(transProbs);
^
required: int,int
found: TransitionProbability
reason: actual and formal argument lists differ in length
Source/org/apache/hivemind/util/PropertyAdaptor.java:166: warning: non-varargs call of varargs method with inexact argument type for last parameter;
return _readMethod.invoke(target, null);
^
cast to Object for a varargs call
cast to Object[] for a non-varargs call and to suppress this warning
Note: Some input files use or override a deprecated API.
I think simply providing this class in libpal-java was not sufficient
and my naive poking was not successful. Any better hint would be
welcome.
Kind regards
Andreas.
[1] https://anonscm.debian.org/git/debian-med/libpal-java.git/tree/debian/patches/TransitionProbability.patch
--
http://fam-tille.de
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.maint.java
csiph-web