# Koltlin 1.3.61 - Multi platform project - Default Idea project - Not able to run java test in jvmTests

**URL:** <https://discuss.kotlinlang.org/t/koltlin-1-3-61-multi-platform-project-default-idea-project-not-able-to-run-java-test-in-jvmtests/15962>\
**Category:** Multiplatform\
**Created:** [January 20, 2020, 8:32am UTC](https://discuss.kotlinlang.org/t/koltlin-1-3-61-multi-platform-project-default-idea-project-not-able-to-run-java-test-in-jvmtests/15962 "2020-01-20T08:32:30Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![nadeeshtv](https://avatars.discourse-cdn.com/v4/letter/n/90ced4/32.png) [@nadeeshtv](https://discuss.kotlinlang.org/u/nadeeshtv)\
**Post date:** [January 20, 2020, 10:05am UTC](https://discuss.kotlinlang.org/t/koltlin-1-3-61-multi-platform-project-default-idea-project-not-able-to-run-java-test-in-jvmtests/15962/3 "2020-01-20T10:05:41Z")

</div>

@Alexey.Belkov  
I tried as you suggested and it worked. Thanks a lot.  
I explicitly added withJava() and added the test in java folder as I shown in the attached screenshot.  
Please see my build.gradle incase someone needs

 ![Screenshot 2020-01-20 at 11.03.22](https://us1.discourse-cdn.com/flex019/uploads/kotlinlang/original/2X/1/190506b464ea9ff7cb3c4fa37422d3e98cfe0284.png)

```
plugins {
    id 'org.jetbrains.kotlin.multiplatform' version '1.3.61'
}
repositories {
    mavenCentral()
}
group 'com.example'
version '0.0.1'

apply plugin: 'maven-publish'

kotlin {
    jvm{
        withJava()
    }

    js {
        browser {
        }
        nodejs {
        }
    }
    // For ARM, should be changed to iosArm32 or iosArm64
    // For Linux, should be changed to e.g. linuxX64
    // For MacOS, should be changed to e.g. macosX64
    // For Windows, should be changed to e.g. mingwX64
    macosX64("macos")
    sourceSets {
        commonMain {
            dependencies {
                implementation kotlin('stdlib-common')
            }
        }
        commonTest {
            dependencies {
                implementation kotlin('test-common')
                implementation kotlin('test-annotations-common')
            }
        }
        jvmMain {
            dependencies {
                implementation kotlin('stdlib-jdk8')
            }
        }
        jvmTest {
            dependencies {
                implementation kotlin('test')
                implementation kotlin('test-junit')
            }
        }
        jsMain {
            dependencies {
                implementation kotlin('stdlib-js')
            }
        }
        jsTest {
            dependencies {
                implementation kotlin('test-js')
            }
        }
        macosMain {
        }
        macosTest {
        }
    }
}

```

---

_[View the full topic](https://discuss.kotlinlang.org/t/koltlin-1-3-61-multi-platform-project-default-idea-project-not-able-to-run-java-test-in-jvmtests/15962)._
