Hi, all. I got some trouble with ktor. I made java...
# ktor
a
Hi, all. I got some trouble with ktor. I made java lib(jar) which include following code. And I call the function in SpringBoot project. Compilation is ok but when it is called, I got “java.lang.ClassNotFoundException: io.ktor.client.HttpClientJvmKt” error. What’s should I do?
e
Hi @AllowFlame, could you try to specify one of the client engines in dependencies(https://ktor.io/clients/http-client/engines.html)?
a
@e5l Thank you. You’re right. The problem was I set specific client (I use io.ktor:ktor-client-apache) only in lib project. It is necessary to set the same thing in SpringBoot project. Now I know. 🙂
😉 1
👍 1