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/files1307004629: In class `com.sshtools.ant.Ssh$1':
[javac] /home/govett/jbproject/dtc/j2ssh/files1307004629: In constructor `(com.sshtools.ant.Ssh,java.lang.String)':
[javac] /home/govett/jbproject/dtc/j2ssh/files1307004629:605: error: Exception `com.sshtools.j2ssh.transport.InvalidHostFileException' must be caught, or it must be declared in the `throws' clause of `com.sshtools.ant.Ssh$1'.
[javac] <<file too short - unexpected EOF>>
[javac] ^
[javac] /home/govett/jbproject/dtc/j2ssh/files1307004629: In class `com.sshtools.daemon.SshDaemon$1':
[javac] /home/govett/jbproject/dtc/j2ssh/files1307004629: In constructor `(com.sshtools.daemon.SshDaemon)':
[javac] /home/govett/jbproject/dtc/j2ssh/files1307004629:157: error: Exception `java.io.IOException' must be caught, or it must be declared in the `throws' clause of `com.sshtools.daemon.SshDaemon$1'.
[javac] /home/govett/jbproject/dtc/j2ssh/src/com/sshtools/common/automate/AuthorizedKeysFileLoader.java
[javac] ^
[javac] 2 errors
BUILD FAILED
file:/home/govett/jbproject/dtc/j2ssh/build.xml:45: Compile failed; see the compiler error output for details.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I just downloaded this and attempted to build. I'm not
quite sure what this message means. Please explain if
you can.
Also, how do I specify a classpath so I can avoid having to
copy class libraries into the local lib directory?
Thanks.
[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/files1307004629: In class `com.sshtools.ant.Ssh$1':
[javac] /home/govett/jbproject/dtc/j2ssh/files1307004629: In constructor `(com.sshtools.ant.Ssh,java.lang.String)':
[javac] /home/govett/jbproject/dtc/j2ssh/files1307004629:605: error: Exception `com.sshtools.j2ssh.transport.InvalidHostFileException' must be caught, or it must be declared in the `throws' clause of `com.sshtools.ant.Ssh$1'.
[javac] <<file too short - unexpected EOF>>
[javac] ^
[javac] /home/govett/jbproject/dtc/j2ssh/files1307004629: In class `com.sshtools.daemon.SshDaemon$1':
[javac] /home/govett/jbproject/dtc/j2ssh/files1307004629: In constructor `(com.sshtools.daemon.SshDaemon)':
[javac] /home/govett/jbproject/dtc/j2ssh/files1307004629:157: error: Exception `java.io.IOException' must be caught, or it must be declared in the `throws' clause of `com.sshtools.daemon.SshDaemon$1'.
[javac] /home/govett/jbproject/dtc/j2ssh/src/com/sshtools/common/automate/AuthorizedKeysFileLoader.java
[javac] ^
[javac] 2 errors
BUILD FAILED
file:/home/govett/jbproject/dtc/j2ssh/build.xml:45: Compile failed; see the compiler error output for details.
The first error seems to indicate that one of your source files is corrupt? Try re-unpacking or re-downloading the archive?
The other error could be linked to the first. Also, which version are you building? The released 0.2.7?
As for setting the classpath, I suggest using google to look it up for your specific unix shell.