JetBrains / skija

Java bindings for Skia
Apache License 2.0
2.63k stars 127 forks source link

JNI_VERSION_10 is unnecessary and prevent GraalVM to create native image. #91

Closed spket closed 3 years ago

spket commented 3 years ago

Take a look at this issue, GraalVM supports JNI 1.8 and below. JVM 10 and JNI 10 are two different thing. a library could need jvm 10 but only require jni 1.2. JNI 10 add module support which Skija does not need. Change it to JNI_VERSION_1_8 I were able to build native image with GraalVM, take a look Native GUI application with SWT and Skija on Raspberry Pi