This is a blog series to explore OpenJDK's Project Panama.
MIT License
This is a quick intro to OpenJDK's Project Panama.
Part 1 is where you'll learn about jextract and Panama APIs to create C primitive type data and use the printf() function from stdio.h. https://github.com/carldea/panama4newbies/tree/main/part01
Part 2 you'll increase your knowledge on using Panama APIs to mimic C Pointers and create structs to hold complex data. https://github.com/carldea/panama4newbies/tree/main/part02
Part 3 is a chance to use Panama APIs to access third party libraries. https://github.com/carldea/panama4newbies/tree/main/part03
Part 4 is a chance to use Panama APIs to allow C code to talk to Java code. https://github.com/carldea/panama4newbies/tree/main/part04
$ java -version
$ jextract -h
$ ./jextract_HelloWorld.java.sh
Create/Open an IntelliJ project in that directory.
Setup up JDK File -> Project Structure -> Project SDK Select the downloaded the early access JDK from https://jdk.java.net/panama/
In preferences you'll need to add --add-modules jdk.incubator.foreign.
IntelliJ you'll need to do the following:
generated/src
is marked as generated sources root.