Ich bekomme diese Ausnahme, nachdem ich die Gläser (pdfbox, bouncycastle etc) aus meinem Projekt entfernt und sie in einen anderen Ordner verschoben habe, aber ich habe sie in den Build-Pfad ...Ich bekomme diese Ausnahme: Ungelöste Kompilierungsprobleme
in der ersten Zeile Eclipse zeigt diesen Fehler (der Konstruktor PDFParser (InputStream) bezieht sich auf fehlende Typ InputStream) -altought FileInputStream ist von InputStream erweitert und ich weiß nicht warum?
FileInputStream in = new FileInputStream(path);
PDFParser parser = new PDFParser(in);
PDFTextStripper textStripper = new PDFTextStripper();
parser.parse();
String text = textStripper.getText(new PDDocument(parser.getDocument()));
irgendwelche ideen? **
Exception in thread "AWT-EventQueue-0" java.lang.Error: Unresolved compilation problems:
The constructor PDFParser(InputStream) refers to the missing type InputStream
The constructor PDFTextStripper() refers to the missing type IOException
The method parse() from the type PDFParser refers to the missing type IOException
The method getText(PDDocument) from the type PDFTextStripper refers to the missing type IOException
The method getDocument() from the type PDFParser refers to the missing type IOException
The method getDocument() from the type PDFParser refers to the missing type IOException
The method close() from the type COSDocument refers to the missing type IOException
**
Beachten Sie, dass Eclipse einen "inkrementellen Compiler" hat, so dass einige (die meisten) Ihres Codes bereits kompiliert werden können, während andere nicht. –
Es ist eine sehr gute Idee, versuchen, das Loch-Projekt von Grund auf neu zu kompilieren. Danke dir – Stephan