mynameisjes
mynameisjes
RRailway
Created by mynameisjes on 8/10/2023 in #✋|help
Kotlin Spring Boot Deploy Issue
Hello, I'm trying to deploy a basic spring boot app using kotlin, gradle, and jdk 8. There are no special build instructions in my build.gradle.kts or railway service configuration. And I receive the error:
no main manifest attribute, in build/libs/api-0.0.1-SNAPSHOT-plain.jar
no main manifest attribute, in build/libs/api-0.0.1-SNAPSHOT-plain.jar
When I make the change to my build.gradle.kts to point to my main class file, I receive this error:
Exception in thread "main" java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics
at com.rpwadmin.api.BackendApplicationKt.main(BackendApplication.kt)
Caused by: java.lang.ClassNotFoundException: kotlin.jvm.internal.Intrinsics
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:520)
... 1 more
Exception in thread "main" java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics
at com.rpwadmin.api.BackendApplicationKt.main(BackendApplication.kt)
Caused by: java.lang.ClassNotFoundException: kotlin.jvm.internal.Intrinsics
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:520)
... 1 more
I've started from jdk 17 and gone all they way down and I can't seem to find a work around.
4 replies