R
Railway2mo ago
Poui

Gradle.kts implementation path incorrect

Hi, I have a jar file that I implement from build.gradle.kts with this line "implementation(files("aspose-slides-24.3-jdk16.jar"))" It works in my IDE (IntelJ) but when I deploy the program I have a main class not found error. As soon as I remove that line from build.gradle.kts the program can deploy. I am on Windows and it's not the first time I had an issue with paths between my local machine and railway deployment. Thanks in advance and sorry for my ignorance.
2 Replies
Percy
Percy2mo ago
Project ID: d4c27e63-1666-4337-988d-6f7250261d1c
Poui
PouiOP2mo ago
d4c27e63-1666-4337-988d-6f7250261d1c Deployment error : "Removed translation from the doc" Deployment without error : "removed aspose" Update : I thought the issue came from the fact that I was using implementing Aspose.slides from a file but even when I use the typical way to implement aspose from a URL it still gives me the same error : repositories { mavenCentral() maven(url = "https://jitpack.io") maven(url = "https://releases.aspose.com/java/repo") } dependencies { implementation("com.aspose:aspose-slides:24.3:jdk16") } Error: Could not find or load main class com.example.MainKt Caused by: java.lang.ClassNotFoundException: com.example.MainKt
Want results from more Discord servers?
Add your server