# Kotlin 1.4.21 - where is kotlin-runtime.jar

**URL:** <https://discuss.kotlinlang.org/t/kotlin-1-4-21-where-is-kotlin-runtime-jar/20655>\
**Category:** Support\
**Created:** [January 25, 2021, 9:26pm UTC](https://discuss.kotlinlang.org/t/kotlin-1-4-21-where-is-kotlin-runtime-jar/20655 "2021-01-25T21:26:10Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Psijic](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/psijic/32/2227_2.png) [@Psijic](https://discuss.kotlinlang.org/u/Psijic)\
**Post date:** [July 28, 2023, 3:42pm UTC](https://discuss.kotlinlang.org/t/kotlin-1-4-21-where-is-kotlin-runtime-jar/20655/4 "2023-07-28T15:42:43Z")

</div>

Sorry, still can’t configure build properly: what should be included where?  
I added extra dependencies:

```auto
dependencies {
    implementation(kotlin("stdlib-jdk8"))
    implementation("org.jetbrains.kotlin:kotlin-stdlib")
    implementation("org.jetbrains.kotlin:kotlin-stdlib-common")

```

And tried different sources:

```auto
    jar {
        manifest.attributes["Main-Class"] = "MainKt"

        duplicatesStrategy = DuplicatesStrategy.INCLUDE
        from("compileKotlin").outputs
// val dependencies = configurations.runtimeClasspath.get().map(::zipTree)
// from(dependencies)
// from(getByName("compileKotlin"))
// from(
// configurations.runtimeClasspath.get().map {
// it.takeIf { it.isDirectory } ?: zipTree(it)
// }
// )

```

And even added a .jar lib into build/libs/kotlin-stdlib-jdk8-1.8.21.jar (but it is deleted after `gradle clean`, so it doesn’t belong there, so I put it into `lib` also).  
And still I have the error:

```auto
java -jar kapp-1.0-SNAPSHOT.jar 
Exception in thread "main" java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics
        at MainKt.main(main.kt)

```

How should I configure my `build.gradle.kts` properly? I use `kotlinOptions.jvmTarget = "17"`

---

_[View the full topic](https://discuss.kotlinlang.org/t/kotlin-1-4-21-where-is-kotlin-runtime-jar/20655)._
