I'm getting this exception : Unresolved compilation problems

Posted by Stephan on Stack Overflow See other posts from Stack Overflow or by Stephan
Published on 2010-02-16T13:18:17Z Indexed on 2010/04/01 4:53 UTC
Read the original article Hit count: 410

Filed under:

I get this exception after i removed from my project the jars (pdfbox ,bouncycastle etc) and moved them to another folder but i included them in the build path ...

at the first line eclipse shows this error( the constructor PDFParser(InputStream) refers to missing type InputStream) -altought FileInputStream is extended from InputStream- and i don't know why?

FileInputStream in = new FileInputStream(path);
PDFParser parser = new PDFParser(in);
PDFTextStripper textStripper = new PDFTextStripper();
parser.parse();
String text = textStripper.getText(new PDDocument(parser.getDocument()));

any ideas? **

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

**

© Stack Overflow or respective owner

Related posts about java