Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » newbie Import cannot be resolved(importing)
newbie Import cannot be resolved [message #674053] Wed, 25 May 2011 16:46 Go to next message
S.  is currently offline S.
Messages: 7
Registered: May 2011
Junior Member
The import org.apache.pdfbox.pdfparser.PDFParser cannot be resolved

I'm trying to create a Java Project and I have


import java.io.File;// This is OK
import org.apache.pdfbox.pdfparser.PDFParser; // I get error

In fact ALL of my
import org.apache.pdfbox.* have the same error.
I was trying to keep it simple in showing one line.
Newbie- I have read and tried a lot of suggestions.
I'm trying to create a Java project to read text out of a PDF.

Any suggestions?

Thanks,
S.
Re: newbie Import cannot be resolved [message #674206 is a reply to message #674053] Thu, 26 May 2011 06:47 Go to previous messageGo to next message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
On 25.05.2011 18:46, S. wrote:
> The import org.apache.pdfbox.pdfparser.PDFParser cannot be resolved
>
> I'm trying to create a Java Project and I have
>
> import java.io.File;// This is OK
> import org.apache.pdfbox.pdfparser.PDFParser; // I get error
>
> In fact ALL of my
> import org.apache.pdfbox.* have the same error. I was trying to keep
> it simple in showing one line.
> Newbie- I have read and tried a lot of suggestions.
> I'm trying to create a Java project to read text out of a PDF.
>
> Any suggestions?
It looks like you did not add the library that contains the PDFParser to
the Java build path of your project.

Dani
>
> Thanks,
> S.
>
Re: newbie Import cannot be resolved-SOLVED [message #674299 is a reply to message #674206] Thu, 26 May 2011 13:07 Go to previous message
S.  is currently offline S.
Messages: 7
Registered: May 2011
Junior Member
I think I solved it.

I select
Right click the package
Build Path->Configure Build Path
->Libraries
-> Add External Class Folder

I don't know why I didn't see that earlier.

I hope this will helps someone else out.

Thanks
Previous Topic:How do I display and/or select class list in my plugin
Next Topic:Inner and nested classes navigation
Goto Forum:
  


Current Time: Thu Oct 30 14:03:09 GMT 2014

Powered by FUDForum. Page generated in 0.09503 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software