The Artima Developer Community
Sponsored Link

Java Answers Forum
please help with error on packaging

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Sid Northfield

Posts: 20
Nickname: northfield
Registered: Aug, 2002

please help with error on packaging Posted: Sep 20, 2002 5:54 AM
Reply to this message Reply
Advertisement
Here is the error:

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

FTPBEA~1 JAV 60,193 09-19-02 6:16p FtpBean.java
CONNEC~1 JAV 624 09-20-02 9:40a ConnectToFtp.java
2 file(s) 116,537 bytes
0 dir(s) 1,038,680,064 bytes free


Please help?????

Topic: How can I do next step of entering user name and password? Previous Topic   Next Topic Topic: java mail

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use