D:\tomcat\jakarta-tomcat-3.3.1\webapps\myJSPs\WEB-INF\classes\ftpbean&g t;javac Conn ectToFtp.java ConnectToFtp.java:12: cannot resolve symbol symbol : class FtpBean location: class ftp.ConnectToFtp FtpBean ftp; ^ ConnectToFtp.java:16: cannot resolve symbol symbol : class FtpBean location: class ftp.ConnectToFtp ftp = new FtpBean(); ^ 2 errors
Here is the code for ConnectToFTP.java package ftp;
/** * This is a example of using FtpBean. * It connects to a ftp server. */ public class ConnectToFtp { FtpBean ftp; public ConnectToFtp() { // Create a new FtpBean object. ftp = new FtpBean(); }
// Connect to a ftp server. public void connect() { try { ftp.ftpConnect("whale.wxx.ac.uk", "w1111", "1111"); } catch(Exception e) { System.out.println(e); } }
}
Here is the FTPbean class
package ftpbean;
public class FtpBean { protected final static String FTP_INIT = "FTP_INIT"; ...
/** * Constructor */ public FtpBean() { pcs = new PropertyChangeSupport(this); }
... }
Here is the "dir" on dos D:\tomcat\jakarta-tomcat-3.3.1\webapps\myJSPs\WEB-INF\classes\ftpbean>di r *.java
Volume in drive D has no label Volume Serial Number is 1953-1604 Directory of D:\tomcat\jakarta-tomcat-3.3.1\webapps\myJSPs\WEB-INF\classes\ftpbean