tdlight-team / tdlight-java

Complete Bot and Userbot Telegram library based on TDLib
https://t.me/TDLight
GNU Lesser General Public License v3.0
263 stars 43 forks source link

GraalVM Native Image Support #36

Open Parker7123 opened 3 years ago

Parker7123 commented 3 years ago

I am trying to make tdlight work with graalvm narive image. In intelij everything works flawlessly, error occurs when I compile code to native image using graal. I am getting this error when code starts tdlight client:

[ 1][t 0][1625332068.895975351][tl_jni_object.cpp:39]      Can't find class [it/tdlight/tdnative/NativeClient]
Fatal error reported via JNI: Can't find class [it/tdlight/tdnative/NativeClient]

I am including tdlight like this

    implementation 'it.tdlight:tdlight-java:4.171.128'
    implementation 'it.tdlight:tdlight-natives-windows-amd64:3.3.55'

Any help appreciated.

cavallium commented 3 years ago

I can't help you since I never tested it with graalvm native images