मैं इस अपवाद के बाद मैं अपने परियोजना से हटा जार (pdfbox, bouncycastle आदि) और उन्हें अन्य फ़ोल्डर में ले, लेकिन मैं उन्हें निर्माण पथ में शामिल हो जाओ ...मैं इस अपवाद हो रही है: समाधान नहीं किया गया संकलन समस्याओं
पहली पंक्ति ग्रहण पर इस त्रुटि -altought FileInputStream InputStream- से बढ़ा दिया गया है और मैं पता नहीं क्यों (निर्माता PDFParser (InputStream) लापता प्रकार 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
**
ध्यान दें कि ग्रहण में "वृद्धिशील कंपाइलर" है, इसलिए आपके कोड का कुछ (अधिकांश) पहले ही संकलित हो सकता है जबकि कुछ बिट्स नहीं हैं। –
इसकी एक बहुत अच्छी विचारधारा बीमार छेद परियोजना को खरोंच से भरने की कोशिश करती है। धन्यवाद – Stephan