# Unable to import fat JAR in a Kotlin Project

**URL:** <https://discuss.kotlinlang.org/t/unable-to-import-fat-jar-in-a-kotlin-project/24969>\
**Category:** Support\
**Created:** [June 8, 2022, 1:55pm UTC](https://discuss.kotlinlang.org/t/unable-to-import-fat-jar-in-a-kotlin-project/24969 "2022-06-08T13:55:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shubhamdybey48](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@shubhamdybey48](https://discuss.kotlinlang.org/u/shubhamdybey48)\
**Post date:** [June 8, 2022, 1:55pm UTC](https://discuss.kotlinlang.org/t/unable-to-import-fat-jar-in-a-kotlin-project/24969/1 "2022-06-08T13:55:41Z")

</div>

I am integrating an Open API Generated Java SDK in a kotlin project . But I am unable to import the JAR file even after adding it in an external folder and specifying its location in pom.xml . On further inspection I got to know that I am unable to import only FAT Jar(dependencies are bundled together) .Normal JAR (dependencies are not bundled together) is working fine and I am able to use that in my project . Is there something I am doing wrong ?

```auto
import com.precisely.apis.Psap911ServiceApi //Not able to import as compliler is highlighting that no such file is present.
fun main(args :Array<String>){

    val api = Psap911ServiceApi()
    api.apiClient.generateAndSetAccessToken("KEY", "SECRET")
    val address : String = "950 Josephine Street Denver CO 80204";
    try {
        val response = api.getPSAPByAddress(address);
        println(response)
    }
    catch (e: Exception) {
        e.printStackTrace()
    }

}

```

---

<div class="post-metadata">

**Author:** ![Alexey.Belkov](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/alexey.belkov/32/5215_2.png) [@Alexey.Belkov](https://discuss.kotlinlang.org/u/Alexey.Belkov)\
**Post date:** [June 9, 2022, 10:34am UTC](https://discuss.kotlinlang.org/t/unable-to-import-fat-jar-in-a-kotlin-project/24969/2 "2022-06-09T10:34:47Z")

</div>

This is a known bug: [https://youtrack.jetbrains.com/issue/KT-25709/IDE-Unresolved-reference-from-fat-jar-dependency-with-Kotlin-runtime](https://youtrack.jetbrains.com/issue/KT-25709/IDE-Unresolved-reference-from-fat-jar-dependency-with-Kotlin-runtime). See comments for possible workarounds.
