Fork me on GitHub

I need an example how to return a String (or CCharPointer to a String) from a native Graal library and how to read it from Java (or another Graal native application for that matter. I have tried this: for the library and this for the program calling that library: but this results in a fatal error: I'm not so familiar with all this JNI stuff, so any help would be appreciated.


Does it really needs to be a String? String's have some weird things, I think a char array would be simpler?