https://kotlinlang.org logo
#ktor
Title
# ktor
a

AllowFlame

02/18/2019, 3:28 AM
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

e5l

02/18/2019, 5:52 AM
Hi @AllowFlame, could you try to specify one of the client engines in dependencies(https://ktor.io/clients/http-client/engines.html)?
a

AllowFlame

02/18/2019, 6:22 AM
@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
3 Views