Hallo Community,
ich wollte mir
pdftk aus der AUR installieren und komme leider alleine nicht weiter. Meine Vermutung ist, dass mein JAVA-Compiler nicht korrekt konfiguriert ist, bzw. die Umgebungsvariablen nicht richtig gesetzt sind.
Die Abhängigkeiten
gcc-gcj>=4.6.2 und
gcc-gcj-ecj konnte ich problemlos installieren. Führe ich jedoch
makepkg -s
für pdftk aus, so bekomme ich jede Menge Fehlermeldungen. Die letzten Meldungen sehen dabei so aus:
/home/paul/builds/pdftk/src/pdftk-1.44-dist/java/org/bouncycastle/util/encoders/Encoder.java:16: error: String cannot be resolved to a type
int decode(String data, OutputStream out) throws IOException;
^^^^^^
/home/paul/builds/pdftk/src/pdftk-1.44-dist/java/org/bouncycastle/util/encoders/Encoder.java:16: error: OutputStream cannot be resolved to a type
int decode(String data, OutputStream out) throws IOException;
^^^^^^^^^^^^
/home/paul/builds/pdftk/src/pdftk-1.44-dist/java/org/bouncycastle/util/encoders/Encoder.java:16: error: IOException cannot be resolved to a type
int decode(String data, OutputStream out) throws IOException;
^^^^^^^^^^^
/home/paul/builds/pdftk/src/pdftk-1.44-dist/java/org/bouncycastle/util/encoders/HexEncoder.java:3: error: The import java.io cannot be resolved
import java.io.IOException;
^^^^^^^
/home/paul/builds/pdftk/src/pdftk-1.44-dist/java/org/bouncycastle/util/encoders/HexEncoder.java:4: error: The import java.io cannot be resolved
import java.io.OutputStream;
^^^^^^^
/home/paul/builds/pdftk/src/pdftk-1.44-dist/java/org/bouncycastle/util/encoders/HexEncoder.java:6: error: The type HexEncoder must implement the inherited abstract method Encoder.decode(String, OutputStream)
public class HexEncoder
^^^^^^^^^^
/home/paul/builds/pdftk/src/pdftk-1.44-dist/java/org/bouncycastle/util/encoders/HexEncoder.java:6: error: The type HexEncoder must implement the inherited abstract method Encoder.decode(byte[], int, int, OutputStream)
public class HexEncoder
^^^^^^^^^^
/home/paul/builds/pdftk/src/pdftk-1.44-dist/java/org/bouncycastle/util/encoders/HexEncoder.java:6: error: The type HexEncoder must implement the inherited abstract method Encoder.encode(byte[], int, int, OutputStream)
public class HexEncoder
^^^^^^^^^^
/home/paul/builds/pdftk/src/pdftk-1.44-dist/java/org/bouncycastle/util/encoders/HexEncoder.java:35: error: Implicit super constructor Object() is undefined. Must explicitly invoke another constructor
public HexEncoder()
^^^^^^^^^^^^
/home/paul/builds/pdftk/src/pdftk-1.44-dist/java/org/bouncycastle/util/encoders/HexEncoder.java:49: error: OutputStream cannot be resolved to a type
OutputStream out)
^^^^^^^^^^^^
/home/paul/builds/pdftk/src/pdftk-1.44-dist/java/org/bouncycastle/util/encoders/HexEncoder.java:50: error: IOException cannot be resolved to a type
throws IOException
^^^^^^^^^^^
/home/paul/builds/pdftk/src/pdftk-1.44-dist/java/org/bouncycastle/util/encoders/HexEncoder.java:79: error: OutputStream cannot be resolved to a type
OutputStream out)
^^^^^^^^^^^^
/home/paul/builds/pdftk/src/pdftk-1.44-dist/java/org/bouncycastle/util/encoders/HexEncoder.java:80: error: IOException cannot be resolved to a type
throws IOException
^^^^^^^^^^^
/home/paul/builds/pdftk/src/pdftk-1.44-dist/java/org/bouncycastle/util/encoders/HexEncoder.java:129: error: String cannot be resolved to a type
String data,
^^^^^^
/home/paul/builds/pdftk/src/pdftk-1.44-dist/java/org/bouncycastle/util/encoders/HexEncoder.java:130: error: OutputStream cannot be resolved to a type
OutputStream out)
^^^^^^^^^^^^
/home/paul/builds/pdftk/src/pdftk-1.44-dist/java/org/bouncycastle/util/encoders/HexEncoder.java:131: error: IOException cannot be resolved to a type
throws IOException
^^^^^^^^^^^
7348 problems (7348 errors)
make[1]: [com/lowagie/text/Font.class] Fehler 1 (ignoriert)
gcjh -force --classpath="/usr/share/java/libgcj.jar:/home/paul/builds/pdftk/src/pdftk-1.44-dist/java:." com/lowagie/text/Font
make[1]: *** [com/lowagie/text/Font.h] Unterbrechung
make: *** [javalib] Unterbrechung
==> FEHLER: Durch Nutzer abgebrochen! Beende...
Die Klassen String und OutputStream sind aber offenbar vorhanden:
$ locate String.class | grep "/String.class"
/home/paul/builds/gcc-gcj/src/gcc-4.7.1/libjava/classpath/lib/java/lang/String.class
$ locate OutputStream.class | grep "/OutputStream.class"
/home/paul/builds/gcc-gcj/src/gcc-4.7.1/libjava/classpath/lib/java/io/OutputStream.class
/home/paul/builds/gcc-gcj/src/gcc-4.7.1/libjava/classpath/lib/org/omg/COBRA/portable/OutputStream.class
/home/paul/builds/gcc-gcj/src/gcc-4.7.1/libjava/classpath/lib/org/omg/COBRA_2_3/portable/OutputStream.class
Vielleicht hat jemand eine Idee, wo hier der Fehler zu suchen ist oder bestenfalls auch, wie er zu beheben ist. Ich würde mich sehr freuen!
Viele Grüße
disjunkt