Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
11.8k views
in General by
Hello,
I am having trouble getting started. I have downloaded version 1.2.3 and unpacked it. I am eventually looking to incorporate FTP functionality into a Swing app I am developing. I am connected to a network, but am developing locally on my machine. Therefore I have unpacked everything into a 'ftp-1.2.3' directory on my C drive. I have added 'C:\ftp-1.2.3' to my system classpath but if I try to import anything (i.e. import com.enterprisedt.net.ftp;) I get a "package com.enterprisedt.net does not exist" error.
Can you help?

Mark
:)

4 Answers

0 votes
by
There should be a jar file, ftp.jar, in the distribution. You need to include this jar file in your CLASSPATH, e.g. add C:\jars\ftp.jar to your CLASSPATH

Hello,
I am having trouble getting started. I have downloaded version 1.2.3 and unpacked it. I am eventually looking to incorporate FTP functionality into a Swing app I am developing. I am connected to a network, but am developing locally on my machine. Therefore I have unpacked everything into a 'ftp-1.2.3' directory on my C drive. I have added 'C:\ftp-1.2.3' to my system classpath but if I try to import anything (i.e. import com.enterprisedt.net.ftp;) I get a "package com.enterprisedt.net does not exist" error.
Can you help?

Mark
:)
0 votes
by (180 points)
Hi Bruce,
Thanks for getting back to me.
I have already tried your suggestion, but unfortunately to no avail. My import statement is correct isn't it?
import com.enterprisedt.net.ftp;

Mark

There should be a jar file, ftp.jar, in the distribution. You need to include this jar file in your CLASSPATH, e.g. add C:\jars\ftp.jar to your CLASSPATH
0 votes
by
No, you need either

import com.enterprisedt.net.ftp.*;

to import all classes in a package

or

import com.enterprisedt.net.ftp.FTPClient;
import com.enterprisedt.net.ftp.Whatever;

to import specific classes you are using.

Hi Bruce,
Thanks for getting back to me.
I have already tried your suggestion, but unfortunately to no avail. My import statement is correct isn't it?
import com.enterprisedt.net.ftp;

Mark

There should be a jar file, ftp.jar, in the distribution. You need to include this jar file in your CLASSPATH, e.g. add C:\jars\ftp.jar to your CLASSPATH
0 votes
by (180 points)
Hi Bruce,
All seems to be working now. It was actually a problem with my classpath.
I just need to get my teeth stuck in now.
Thanks for the help.

Mark
:D

Categories

...