Fork me on GitHub
#graalvm
<
2019-12-05
>
borkdude13:12:58

@lee might be a nice link to add to the resources

sogaiu14:12:16

tree sitter anyone?

sogaiu14:12:52

^ @retrogradeorbit (nice work, btw 🙂 )

borkdude14:12:34

I think he used JDK8. I also still keep using JDK8 since JDK11 seems a bit experimental still in GraalVM?

sogaiu14:12:23

fwiw, according to the SO link, one can use javac with -h in jdk8 as well

lread14:12:42

ya, coolio! will add.

sogaiu14:12:30

fwiw, w/ slight editing it worked with graal 19.3.0 java8 + openjdk 8

sogaiu15:12:38

to use javac instead of javah, the following seems sufficient:

cd src && javac -h . HelloWorld.java
instead of:
cd src && javah -jni HellowWorld

borkdude15:12:17

nice, so you don't even have to compile it first?

sogaiu15:12:18

i don't know about that -- when i remove the part of the Makefile for creating the class file, it doesn't work

sogaiu15:12:30

javac -help has this to say about -h:

-h <directory>             Specify where to place generated native header files

sogaiu15:12:55

fwiw this is a diff for what i have now: https://pastebin.com/WDH8zv0E

sogaiu16:12:57

it seems to work with graal 19.3.0 java11 + adoptopenjdk 11 too