You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in thread "main" java.lang.NoClassDefFoundError: io/ktor/client/HttpClientJvmKt
at ru.sokomishalov.skraper.client.ktor.KtorSkraperClient.<clinit>(KtorSkraperClient.kt:86)
at org.example.Main.main(Main.java:11)
Caused by: java.lang.ClassNotFoundException: io.ktor.client.HttpClientJvmKt
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
... 2 more
Process finished with exit code 1
main.java
package org.example;
import com.google.gson.Gson;
import kotlinx.coroutines.flow.Flow;
import ru.sokomishalov.skraper.client.ktor.KtorSkraperClient;
import ru.sokomishalov.skraper.model.Post;
import ru.sokomishalov.skraper.provider.facebook.FacebookSkraper;
public class Main {
public static void main(String[] args) {
KtorSkraperClient httpClient = new KtorSkraperClient();
FacebookSkraper skraper = new FacebookSkraper(httpClient);
Flow<Post> posts= skraper.getPosts("memes");
System.out.println( new Gson().toJson(posts));
}
}
Thank you.
error
main.java
pom.xml
The text was updated successfully, but these errors were encountered: