Gradle.kts implementation path incorrect
poui
PROOP

2 years ago

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.

Closed

4 Replies

poui
PROOP

2 years ago

d4c27e63-1666-4337-988d-6f7250261d1c


poui
PROOP

2 years ago

Deployment error : "Removed translation from the doc"

Deployment without error : "removed aspose"


poui
PROOP

2 years ago

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")

}


poui
PROOP

2 years ago

Error: Could not find or load main class com.example.MainKt

Caused by: java.lang.ClassNotFoundException: com.example.MainKt


Welcome!

Sign in to your Railway account to join the conversation.

Loading...