skip to Main Content

So I am trying to connect to FTPClient from my JavaCompute node in Integration Bus v10.0.0.8.
The problem occurs because my runtime don’t see the imported jar.
Exception that happens :

java.lang.NoClassDefFoundError: org/apache/commons/net/ftp/FTPClient

Can anyone help me?

2

Answers


  1. Chosen as BEST ANSWER

    So the problem was that my RUNTIME did not see the jar (hence the exception) and what i did was that i imported the jar in shared-classes folder:

    C:ProgramDataIBMMQSIconfigOracleDatabaseshared-classes


  2. You probably did not add the JAR files as dependencies of the Java project in your Toolkit.

    • Create a lib subdirectory in your Java project and copy the JAR files there.
    • Right click the Java project, Properties -> Java Build Path -> Libraries
    • Click button Add JARs... and add the libraries from the lib directory.

    See also the Knowledge Center.

    To read a file from an FTP server, you can also use the File Input or File Read nodes and configure the FTP section. In case you use SFTP, please look at IT23379 as well.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search