2 Replies - 26541 Views - Last Post: 03 April 2009 - 12:11 PM Rate Topic: -----

#1 scottyadam  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 116
  • Joined: 03-December 07

The import org.apache cannot be resolved

Posted 03 April 2009 - 10:19 AM

Alright, so I decided to build myself the simplest of simplest ftp client so that I could understand how this works:

Ok, I have parts built but I am trying to include the following things:

import org.apache.commons.net.ftp.FTPClient;
import org.apache.commons.net.ftp.FTPFile;



The error I am getting from eclipse (which is the editor that I am using) is:

The import org.apache cannot be resolved



The same thing happens when I try to do:

import com.jscape.inet.ftp.*;



I have an idea what is going on with this but I am not entirely sure. I think I need a package that I must download from apache or somewhere that might give me access to libraries?

I would be grateful to any help...

Is This A Good Question/Topic? 0
  • +

Replies To: The import org.apache cannot be resolved

#2 markhazlett9  Icon User is offline

  • Coding is a lifestyle
  • member icon

Reputation: 60
  • View blog
  • Posts: 1,666
  • Joined: 12-July 08

Re: The import org.apache cannot be resolved

Posted 03 April 2009 - 12:07 PM

What IDE are you using? If it's eclipse, right click on the project -> Build Path -> Configure Build Path -> Libraries -> Add External Jar's

Then point to the jar file in your file system. Cheers
Was This Post Helpful? 0
  • +
  • -

#3 scottyadam  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 116
  • Joined: 03-December 07

Re: The import org.apache cannot be resolved

Posted 03 April 2009 - 12:11 PM

Thanks for the response markhazlett9,

That helps, now where could I find the external Jar file that would have this library (the org.apache) or ( the com.*)

Where would I download these from...I think you are a little ahead of me but I would REALLY appreciate the help man in understanding this.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1