Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.java > #9128

Re: Problems to find classes that should be in itext1.jar

From Andreas Tille <tille@debian.org>
Newsgroups linux.debian.maint.java
Subject Re: Problems to find classes that should be in itext1.jar
Date 2016-05-23 16:00 +0200
Message-ID <rBYyJ-6yX-13@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> <rBI0V-568-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.debian.maint.java | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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