Susinda Perera
Susinda Perera

Reputation: 133

Ballerina CLASS_NOT_FOUND exception

I followed https://github.com/wso2-ballerina/module-ftp and tried to run a sample file as follows

ballerina run getFtp.bal

It gives me following output

Compiling source
        getFtp.bal
error: wso2:ftp:/src/ftp/external_functions.bal:70:1: {ballerinax/java}CLASS_NOT_FOUND message=org.wso2.ei.b7a.ftp.core.client.FTPClient
error: wso2:ftp:/src/ftp/external_functions.bal:75:1: {ballerinax/java}CLASS_NOT_FOUND message=org.wso2.ei.b7a.ftp.core.server.FTPListenerHelper

Note that I ran ballerina pull wso2/ftp command prior to this, Is there anything else to do, any help is appreciated. Thanks

Upvotes: 1

Views: 172

Answers (1)

hYk
hYk

Reputation: 789

There was an issue where interoperability did not work for single ballerina files. That is why you are getting this error. Try converting your code to a project module. Then it will work with the ballerina version you have.

This issue is fixed in ballerina 1.0.3 (https://ballerina.io/downloads/).

Upvotes: 2

Related Questions