#65 installation error: `FileUtils' not found in declaration of

open-fixed
nobody
5
7 days ago
2004-12-09
Mark W. Govett
No

I just downloaded the latest j2ssh to linux system and
got a bunch
of errors. Am I missing a jar file (or two) that also
needs to
be installed?

Thanks.

Mark

[govett@cray j2ssh]$ ant
Buildfile: build.xml

clean:
[delete] Deleting directory
/home/govett/jbproject/dtc/j2ssh/dist/classes
[delete] Deleting directory
/home/govett/jbproject/dtc/j2ssh/dist

compile:
[echo] Creating directories
[mkdir] Created dir:
/home/govett/jbproject/dtc/j2ssh/dist
[mkdir] Created dir:
/home/govett/jbproject/dtc/j2ssh/dist/classes
[echo] Copying resource to classpath
[copy] Copying 52 files to
/home/govett/jbproject/dtc/j2ssh/dist/classes
[javac] Compiling 437 source files to
/home/govett/jbproject/dtc/j2ssh/dist/classes
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Sftp.java:75:
error: Type `FileUtils' not found in declaration of
field `fileUtils'.
[javac] private FileUtils fileUtils =
FileUtils.newFileUtils();
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Sftp.java:118:
error: Type `FileSet' not found in the declaration of
the argument `set' of method `addFileset'.
[javac] public void addFileset(FileSet set) {
[govett@cray j2ssh]$ cat err.out
Buildfile: build.xml

clean:
[delete] Deleting directory
/home/govett/jbproject/dtc/j2ssh/dist/classes
[delete] Deleting directory
/home/govett/jbproject/dtc/j2ssh/dist

compile:
[echo] Creating directories
[mkdir] Created dir:
/home/govett/jbproject/dtc/j2ssh/dist
[mkdir] Created dir:
/home/govett/jbproject/dtc/j2ssh/dist/classes
[echo] Copying resource to classpath
[copy] Copying 52 files to
/home/govett/jbproject/dtc/j2ssh/dist/classes
[javac] Compiling 437 source files to
/home/govett/jbproject/dtc/j2ssh/dist/classes
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Sftp.java:75:
error: Type `FileUtils' not found in declaration of
field `fileUtils'.
[javac] private FileUtils fileUtils =
FileUtils.newFileUtils();
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Sftp.java:118:
error: Type `FileSet' not found in the declaration of
the argument `set' of method `addFileset'.
[javac] public void addFileset(FileSet set) {
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Sftp.java:145:
error: Class `BuildException' not found in `throws'.
[javac] public void setAction(Action action)
throws BuildException {
[javac]
^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Sftp.java:167:
error: Class `BuildException' not found in `throws'.
[javac] protected void checkConfiguration()
throws BuildException {
[javac]
^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Sftp.java:187:
error: Type `FileSet' not found in the declaration of
the argument `fs' of method `transferFiles'.
[javac] protected int
transferFiles(SftpClient sftp, FileSet fs)
[javac]
^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Sftp.java:188:
error: Class `BuildException' not found in `throws'.
[javac] throws IOException, BuildException {
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Sftp.java:189:
error: Type `FileScanner' not found in the declaration
of the local variable `ds'.
[javac] FileScanner ds;
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Sftp.java:268:
error: Class `BuildException' not found in `throws'.
[javac] throws IOException, BuildException {
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Sftp.java:277:
error: Type `FileSet' not found in the declaration of
the local variable `fs'.
[javac] FileSet fs = (FileSet)
filesets.elementAt(i);
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Sftp.java:311:
error: Class `BuildException' not found in `throws'.
[javac] throws IOException, BuildException {
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Sftp.java:343:
error: Class `BuildException' not found in `throws'.
[javac] String remoteFile) throws
IOException, BuildException {
[javac]
^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Sftp.java:375:
error: Class `BuildException' not found in `throws'.
[javac] throws IOException, BuildException {
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Sftp.java:430:
error: Class `BuildException' not found in `throws'.
[javac] throws IOException, BuildException {
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Sftp.java:454:
error: Class `BuildException' not found in `throws'.
[javac] throws IOException, BuildException {
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Sftp.java:468:
error: Class `BuildException' not found in `throws'.
[javac] throws IOException, BuildException {
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Sftp.java:527:
error: Class `BuildException' not found in `throws'.
[javac] throws BuildException {
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Sftp.java:540:
error: Class `BuildException' not found in `throws'.
[javac] public void execute(SshClient ssh)
throws BuildException {
[javac]
^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Sftp.java:551:
error: Class `BuildException' not found in `throws'.
[javac] protected void
executeSFTPTask(SshClient ssh) throws BuildException {
[javac]
^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Sftp.java:590:
error: Superclass `DirectoryScanner' of class
`com.sshtools.ant.Sftp$SftpDirectoryScanner' not found.
[javac] protected class SftpDirectoryScanner
extends DirectoryScanner {
[javac]
^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Sftp.java:691:
error: Superclass `EnumeratedAttribute' of class
`com.sshtools.ant.Sftp$Action' not found.
[javac] public static class Action extends
EnumeratedAttribute {
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Ssh.java:39:
error: Superclass `Task' of class
`com.sshtools.ant.Ssh' not found.
[javac] public class Ssh extends Task {
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Ssh.java:61:
error: Class `BuildException' not found in `throws'.
[javac] protected void validate() throws
BuildException {
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Ssh.java:82:
error: Class `BuildException' not found in `throws'.
[javac] protected void
connectAndAuthenticate() throws BuildException {
[javac]
^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Ssh.java:218:
error: Class `BuildException' not found in `throws'.
[javac] protected void disconnect() throws
BuildException {
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Ssh.java:227:
error: Class `org.apache.tools.ant.BuildException' not
found in `throws'.
[javac] public void execute() throws
org.apache.tools.ant.BuildException {
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Ssh.java:234:
error: Class `BuildException' not found in `throws'.
[javac] protected void executeSubTasks()
throws BuildException {
[javac]
^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Ssh.java:337:
error: Class `BuildException' not found in `throws'.
[javac] public void execute(SshClient
ssh) throws BuildException {
[javac]
^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Ssh.java:376:
error: Class `BuildException' not found in `throws'.
[javac] public void execute(SshClient
ssh) throws BuildException {
[javac]
^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Ssh.java:400:
error: Class `BuildException' not found in `throws'.
[javac] protected void validate() throws
BuildException {
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Ssh.java:411:
error: Class `BuildException' not found in `throws'.
[javac] throws BuildException {
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Ssh.java:425:
error: Class `BuildException' not found in `throws'.
[javac] throws BuildException {
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Ssh.java:516:
error: Class `BuildException' not found in `throws'.
[javac] public void execute() throws
BuildException {
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/Ssh.java:566:
error: Class `BuildException' not found in `throws'.
[javac] public void execute() throws
BuildException {
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/ConditionalTasks.java:30:
error: Superclass `Task' of class
`com.sshtools.ant.ConditionalTasks' not found.
[javac] public class ConditionalTasks extends
Task implements TaskContainer {
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/ConditionalTasks.java:30:
error: Superinterface `TaskContainer' of class
`com.sshtools.ant.ConditionalTasks' not found.
[javac] public class ConditionalTasks extends
Task implements TaskContainer {
[javac]
^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/ConditionalTasks.java:56:
error: Type `Task' not found in the declaration of the
argument `task' of method `addTask'.
[javac] public void addTask(Task task) {
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/ConditionalTasks.java:137:
error: Type `Task' not found in the declaration of the
local variable `task'.
[javac] Task task;
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/ant/SshSubTask.java:44:
error: Class `BuildException' not found in `throws'.
[javac] public void execute(SshClient ssh)
throws BuildException {
[javac]
^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/common/authentication/BannerDialog.java:48:
error: Class or interface `javax.swing.JTextArea' not
found in import.
[javac] import javax.swing.JTextArea;
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/common/authentication/BannerDialog.java:64:
error: Type `JTextArea' not found in declaration of
field `text'.
[javac] private JTextArea text;
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/common/keygen/KeygenPanel2.java:66:
error: Type `JTextArea' not found in declaration of
field `jTextArea1'.
[javac] JTextArea jTextArea1 = new JTextArea();
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/common/ui/Tabber.java:72:
error: Nested class javax.swing.JTabbedPane$Tab is
non-public; cannot be accessed from here.
[javac] public Tab getTabAt(int i) {
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/common/ui/Tabber.java:83:
error: Nested class javax.swing.JTabbedPane$Tab is
non-public; cannot be accessed from here.
[javac] Tab tab = ((TabPanel)
getComponentAt(i)).getTab();
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/common/ui/Tabber.java:100:
error: Nested class javax.swing.JTabbedPane$Tab is
non-public; cannot be accessed from here.
[javac] Tab tab = ((TabPanel)
getComponentAt(i)).getTab();
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/common/ui/Tabber.java:110:
error: Nested class javax.swing.JTabbedPane$Tab is
non-public; cannot be accessed from here.
[javac] public void addTab(Tab tab) {
[javac] ^
[javac]
/home/govett/jbproject/dtc/j2ssh/src/com/sshtools/common/ui/TextBox.java:56:
error: Superclass `JTextArea' of class
`com.sshtools.common.ui.TextBox' not found.
[javac] public class TextBox extends JTextArea {
[javac] ^
[javac] 46 errors

BUILD FAILED
file:/home/govett/jbproject/dtc/j2ssh/build.xml:45:
Compile failed; see the compiler error output for details.

Total time: 3 seconds
[govett@cray j2ssh]$

Discussion

  • Mark W. Govett
    Mark W. Govett
    2004-12-09

    • status: open --> open-fixed
     
  • Mark W. Govett
    Mark W. Govett
    2004-12-09

    Logged In: YES
    user_id=721466

    My mistake - I did not have ant.jar in path. Sorry for this
    posting!