ballerina-platform / ballerina-dev-website

Dev version of the ballerina.io website
Apache License 2.0
157 stars 168 forks source link

Improvement in Ballerina FFI documentation #8708

Open lnash94 opened 4 months ago

lnash94 commented 4 months ago

Description

I was trying to write the ballerina external function that has Java implementation with my own class instead of the java pre build class. I was referring below documentation and it says that

The @java:Method annotation instructs the jBallerina compiler to link to the doSomethingInJava static method in the a.b.c.Foo Java class. 

https://ballerina.io/learn/ballerina-ffi/ But this doesn't mention where I need to put my own Java implementation (a.b.c.Foo java class) to have bindings. It would be helpful if it could be mentioned within the documentation.

Related website/documentation area

Add/Uncomment the relevant area label out of the following.

Area/LearnPages

Describe the problem(s)

A detailed description of the purpose of this improvement.

anupama-pathirage commented 3 months ago

@HindujaB / @warunalakshitha Any update on this, Please check and fix it asap.