# Kotlin support in Play 2.0 / sbt framework under IntelliJ IDEA

**URL:** <https://discuss.kotlinlang.org/t/kotlin-support-in-play-2-0-sbt-framework-under-intellij-idea/1678>\
**Category:** Web Development\
**Created:** [May 17, 2016, 5:24pm UTC](https://discuss.kotlinlang.org/t/kotlin-support-in-play-2-0-sbt-framework-under-intellij-idea/1678 "2016-05-17T17:24:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alpha\_10016](https://avatars.discourse-cdn.com/v4/letter/a/43a26b/32.png) [@alpha\_10016](https://discuss.kotlinlang.org/u/alpha_10016)\
**Post date:** [May 17, 2016, 5:24pm UTC](https://discuss.kotlinlang.org/t/kotlin-support-in-play-2-0-sbt-framework-under-intellij-idea/1678/1 "2016-05-17T17:24:50Z")

</div>

Congratulations on the Kotlin release, a fantastic language,  
keep enhancing / stabalizing.

As for the question

I used TypeSafe Activator to create a new standard  
play-java project.

without making any changes, imported project  
into IDEA 2016.1 by opening the build.sbt file

then made some adjustments to configuration and then successfully  
compiled within IDEA

executed, all worked

then, I replaced one of the controllers (HomeController.java)  
by its Kotlin equivalent

tried to compile … got message that compiler can no longer see that  
class (even though autocompletion show that it)

Please advise or provide a working example of using Kotlin in Play2 java framework.

thank you,  
Edward

---

<div class="post-metadata">

**Author:** ![yole](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/yole/32/1425_2.png) [@yole](https://discuss.kotlinlang.org/u/yole)\
**Post date:** [May 17, 2016, 5:34pm UTC](https://discuss.kotlinlang.org/t/kotlin-support-in-play-2-0-sbt-framework-under-intellij-idea/1678/2 "2016-05-17T17:34:10Z")

</div>

Did you enable the Kotlin SBT plugin? [GitHub - pfn/kotlin-plugin: Build kotlin code using sbt](https://github.com/pfn/kotlin-plugin)
