libcommons-net2-java required to build on natty

Bug #790028 reported by cmulk
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Syncany
Fix Released
Undecided
Thomas T.

Bug Description

Building was failing for me with the following errors on natty:

...

-do-compile:
    [mkdir] Created dir: /home/cmulk/Desktop/syncany/syncany/build/empty
    [mkdir] Created dir: /home/cmulk/Desktop/syncany/syncany/build/generated-sources/ap-source-output
    [javac] Compiling 213 source files to /home/cmulk/Desktop/syncany/syncany/build/classes
    [javac] /home/cmulk/Desktop/syncany/syncany/src/org/syncany/connection/plugins/ftp/FtpTransferManager.java:34: package org.apache.commons.net.ftp does not exist
    [javac] import org.apache.commons.net.ftp.FTPClient;
    [javac] ^
    [javac] /home/cmulk/Desktop/syncany/syncany/src/org/syncany/connection/plugins/ftp/FtpTransferManager.java:35: package org.apache.commons.net.ftp does not exist
    [javac] import org.apache.commons.net.ftp.FTPFile;
    [javac] ^
    [javac] /home/cmulk/Desktop/syncany/syncany/src/org/syncany/connection/plugins/ftp/FtpTransferManager.java:51: cannot find symbol
    [javac] symbol : class FTPClient
    [javac] location: class org.syncany.connection.plugins.ftp.FtpTransferManager
    [javac] private FTPClient ftp;
    [javac] ^
    [javac] /home/cmulk/Desktop/syncany/syncany/src/org/syncany/connection/plugins/ftp/FtpTransferManager.java:55: cannot find symbol
    [javac] symbol : class FTPClient
    [javac] location: class org.syncany.connection.plugins.ftp.FtpTransferManager
    [javac] this.ftp = new FTPClient();
    [javac] ^
    [javac] /home/cmulk/Desktop/syncany/syncany/src/org/syncany/connection/plugins/ftp/FtpTransferManager.java:82: cannot find symbol
    [javac] symbol : variable FTPClient
    [javac] location: class org.syncany.connection.plugins.ftp.FtpTransferManager
    [javac] ftp.setFileType(FTPClient.BINARY_FILE_TYPE); // Important !!!
    [javac] ^
    [javac] /home/cmulk/Desktop/syncany/syncany/src/org/syncany/connection/plugins/ftp/FtpTransferManager.java:159: cannot find symbol
    [javac] symbol : variable FTPClient
    [javac] location: class org.syncany.connection.plugins.ftp.FtpTransferManager
    [javac] ftp.setFileType(FTPClient.BINARY_FILE_TYPE); // Important !!!
    [javac] ^
    [javac] /home/cmulk/Desktop/syncany/syncany/src/org/syncany/connection/plugins/ftp/FtpTransferManager.java:187: cannot find symbol
    [javac] symbol : class FTPFile
    [javac] location: class org.syncany.connection.plugins.ftp.FtpTransferManager
    [javac] FTPFile[] ftpFiles = ftp.listFiles(getConnection().getPath());
    [javac] ^
    [javac] /home/cmulk/Desktop/syncany/syncany/src/org/syncany/connection/plugins/ftp/FtpTransferManager.java:189: cannot find symbol
    [javac] symbol : class FTPFile
    [javac] location: class org.syncany.connection.plugins.ftp.FtpTransferManager
    [javac] for (FTPFile f : ftpFiles) {
    [javac] ^
    [javac] Note: /home/cmulk/Desktop/syncany/syncany/src/org/syncany/gui/linux/LinuxNativeService.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 8 errors

BUILD FAILED
/home/cmulk/Desktop/syncany/syncany/nbproject/build-impl.xml:603: The following error occurred while executing this line:
/home/cmulk/Desktop/syncany/syncany/nbproject/build-impl.xml:245: Compile failed; see the compiler error output for details.

Installing libcommons-net2-java fixed the problem. Maybe it needs to be added to the DEVELOPMENT instructions?

Revision history for this message
Thomas T. (dontpanic) wrote :

Done, thanks!

Changed in syncany:
assignee: nobody → Thomas Tschager (dontpanic)
status: New → Fix Committed
Revision history for this message
Giuseppe Buzzanca (PiDy) (giuseppebuzzanca) wrote :

Maybe in the INSTALL instructions too, I don't think that this is only a build dependence

Revision history for this message
Thomas T. (dontpanic) wrote : Re: [Bug 790028] Re: libcommons-net2-java required to build on natty

was already there (fifth line)

2.1. INSTALLING SYNCANY ON LINUX
--------------------------------

...

$ sudo apt-get install libcommons-codec-java libcommons-cli-java \
    libcommons-lang-java libcommons-collections3-java \
        libcommons-logging-java libcommons-vfs-java \
        libdom4j-java liblog4j1.2-java libjava-gnome-java \
        sun-java6-javadb libcommons-net2-java libswingworker-java \
        libswing-layout-java libappframework-java \
        libcommons-httpclient-java libj2ssh-java

Am 2011-05-30 14:32, schrieb PiDy:
> Maybe in the INSTALL instructions too, I don't think that this is only a
> build dependence
>

Changed in syncany:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.