A very basic HelloWorld with jextract and panama

Rebecca Ahlvarsson rahlvarsson at gmail.com
Tue Apr 25 16:18:09 UTC 2023


This question is so basic that I must be missing something. Sorry if that's
a dumb rookie question.

I have the following C++ code:

    #include <iostream>

    using namespace std;

    void sayHello() {
        cout << "Hello, Panama!" << endl;
    }

Great!!!

Now how do I go about calling the "sayHello()" C++ method from Java using
jextract and panama?

*I can use Linux or Mac, you choose. And I have jextract built on both
machines.*

That's easy and straightforward with JNI, JNA and JNR. But not with Panama?
:(

Your help clarifying this issue will be greatly appreciated!

-Rebecca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/code-tools-dev/attachments/20230425/c33bb727/attachment-0001.htm>


More information about the code-tools-dev mailing list