#java.lang.ClassNotFoundException: okhttp3.Interceptor

7 messages · Page 1 of 1 (latest)

thin axle
#

Hello there, I'm writing fabric mod which interacts with my telegram bot by pengram.telegrambot library, so when I execute gradle runClient in my IDE(Intellij IDEA), it works perfectly, but when I build jar file and trying to run it by TLauncher (I use fabric loader 0.16.9 and the latest version of fabric api), minecraft crashes and gives me this in crash-report:
java.lang.RuntimeException: Could not execute entrypoint stage 'main' due to errors, provided by 'farmbot' at 'com.gr0wman.farmbot.FarmBot'!
Caused by: java.lang.NoClassDefFoundError: okhttp3/Interceptor
Caused by: java.lang.ClassNotFoundException: okhttp3.Interceptor
my dependencies in build.gradle:
ModImplementation("com.github.pengrad:java-telegram-bot-api:7.11.0")
Include("com.github.pengrad:java-telegram-bot-api:7.11.0")
(I've downloaded mod template from https://fabricmc.net/develop/template/)

sonic sentinel
#

include is not transitive

thin axle
sonic sentinel
#

it only includes the library and not its dependencies

#

iirc you need to include all of its dependencies as well

thin axle
#

And what should I do?

sonic sentinel
#

include all of its dependencies