我从我的项目中删除罐子(pdfbox,bouncycastle等),并将它们移动到另一个文件夹,但我将它们包括在构建路径后,我得到这个异常...我得到这个异常:未解决的编译问题
在第一行eclipse显示此错误(构造函数PDFParser(InputStream)是指缺少类型InputStream)-altought FileInputStream是从InputStream扩展,我不知道为什么?
FileInputStream in = new FileInputStream(path);
PDFParser parser = new PDFParser(in);
PDFTextStripper textStripper = new PDFTextStripper();
parser.parse();
String text = textStripper.getText(new PDDocument(parser.getDocument()));
有什么想法吗? **
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
**
请注意,Eclipse有一个“增量编译器”,因此一些(大部分)代码可能已经被编译,而另一些则没有。 –
它是一个非常好的理念,试图从头开始编写漏洞项目。谢谢你 – Stephan