IntelliJ IDEA Ultimate 2018.3 thinks my Java 9 Project is a Kotlin Project

前端 未结 8 1747
谎友^
谎友^ 2020-12-30 00:01

I have an IntelliJ project composing several subprojects which are all Java 9 modules. I use Maven as a build system. My project has no \"Facets\". My run configuration look

相关标签:
8条回答
  • 2020-12-30 00:56

    Meanwhile, this can be fixed using the kotlin-stdlib.jar available in Kotlin JavaRuntime:

    module kotlin.test {
        requires kotlin.stdlib;
    }
    

    where kotlin.test should be replaced with your module name.

    Just in case the details matter, I am using

    IntelliJ IDEA 2018.3 (Community Edition)
    Build #IC-183.4284.148, built on November 21, 2018
    

    and the Kotlin JavaRunTime mentioned above has sources from the path Contents/plugins/Kotlin/kotlinc/lib within the IntelliJ .app which includes kotlin-stdlib.jar as one of them.

    0 讨论(0)
  • 2020-12-30 01:02

    i had the same problem i deleted the file and start all over again, and its work fine after it

    0 讨论(0)
提交回复
热议问题