# Fail to set up TornadoFx project on IntelliJ

**URL:** <https://discuss.kotlinlang.org/t/fail-to-set-up-tornadofx-project-on-intellij/7847>\
**Category:** Uncategorized\
**Created:** [May 18, 2018, 1:44pm UTC](https://discuss.kotlinlang.org/t/fail-to-set-up-tornadofx-project-on-intellij/7847 "2018-05-18T13:44:05Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![giokkao](https://avatars.discourse-cdn.com/v4/letter/g/5f8ce5/32.png) [@giokkao](https://discuss.kotlinlang.org/u/giokkao)\
**Post date:** [May 18, 2018, 1:44pm UTC](https://discuss.kotlinlang.org/t/fail-to-set-up-tornadofx-project-on-intellij/7847/1 "2018-05-18T13:44:06Z")

</div>

Problem solved: #8

I’m trying to set up a TornadoFx project through IntelliJ plugin but it always shows Unresolved tornadofx and Kotlin not configured.

 ![2018-05-18%2021-16-12](https://us1.discourse-cdn.com/flex019/uploads/kotlinlang/original/2X/a/a99b019071065047a32c41ec2e5805960c156777.png)  
 ![2018-05-18%2021-14-31](https://us1.discourse-cdn.com/flex019/uploads/kotlinlang/original/2X/5/50f0cea8380cb09185554b6a22893ec567ec7f5d.png)

I’ve followed the Github page and set Kotlin api to 1.1, also add `compile 'no.tornado:tornadofx:1.7.14'` to the Gradle file but none seems to work.  
My environment is elementaryOS(Ubuntu 16.04) and openjdk-8 1.8.0\_171. I’ve tried Oracle’s JDK but nothing changed. Do I miss something or should I report the problem to the author?

(Edited typo: Ubuntu 18.04 → 16.04)

---

<div class="post-metadata">

**Author:** ![tieskedh](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/tieskedh/32/2816_2.png) [@tieskedh](https://discuss.kotlinlang.org/u/tieskedh)\
**Post date:** [May 18, 2018, 5:17pm UTC](https://discuss.kotlinlang.org/t/fail-to-set-up-tornadofx-project-on-intellij/7847/2 "2018-05-18T17:17:22Z")

</div>

I highly recommend you to ask the question on slack, as they are very active.

---

<div class="post-metadata">

**Author:** ![SackCastellon](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/sackcastellon/32/4553_2.png) [@SackCastellon](https://discuss.kotlinlang.org/u/SackCastellon)\
**Post date:** [May 18, 2018, 6:17pm UTC](https://discuss.kotlinlang.org/t/fail-to-set-up-tornadofx-project-on-intellij/7847/3 "2018-05-18T18:17:36Z")

</div>

From the [TornadoFX README.md](https://github.com/edvin/tornadofx/blob/master/README.md):

```nohighlight
Important: TornadoFX is not yet compatible with Java 9/10

```

It looks like you are using Java 10 which maybe the reason why it doesn’t work

---

<div class="post-metadata">

**Author:** ![tieskedh](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/tieskedh/32/2816_2.png) [@tieskedh](https://discuss.kotlinlang.org/u/tieskedh)\
**Post date:** [May 18, 2018, 7:13pm UTC](https://discuss.kotlinlang.org/t/fail-to-set-up-tornadofx-project-on-intellij/7847/4 "2018-05-18T19:13:56Z")

</div>

Either the image is a bit misleading or @SackCastellon his answer can help you.

---

<div class="post-metadata">

**Author:** ![giokkao](https://avatars.discourse-cdn.com/v4/letter/g/5f8ce5/32.png) [@giokkao](https://discuss.kotlinlang.org/u/giokkao)\
**Post date:** [May 19, 2018, 2:29am UTC](https://discuss.kotlinlang.org/t/fail-to-set-up-tornadofx-project-on-intellij/7847/5 "2018-05-19T02:29:44Z")

</div>

I noticed that, too. Sorry for the misleading image. It was supposed to show TornadoFx options of creating project. I actually change the version to the system built-in 1.8.0\_171 but that doesn’t seems to work.

---

<div class="post-metadata">

**Author:** ![tieskedh](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/tieskedh/32/2816_2.png) [@tieskedh](https://discuss.kotlinlang.org/u/tieskedh)\
**Post date:** [May 19, 2018, 7:24am UTC](https://discuss.kotlinlang.org/t/fail-to-set-up-tornadofx-project-on-intellij/7847/6 "2018-05-19T07:24:58Z")

</div>

Did you ask on slack already?

---

<div class="post-metadata">

**Author:** ![giokkao](https://avatars.discourse-cdn.com/v4/letter/g/5f8ce5/32.png) [@giokkao](https://discuss.kotlinlang.org/u/giokkao)\
**Post date:** [May 19, 2018, 8:21am UTC](https://discuss.kotlinlang.org/t/fail-to-set-up-tornadofx-project-on-intellij/7847/7 "2018-05-19T08:21:51Z")

</div>

I’ll ask it on Slack at home later. I 'm not having my computer around right now.

---

<div class="post-metadata">

**Author:** ![giokkao](https://avatars.discourse-cdn.com/v4/letter/g/5f8ce5/32.png) [@giokkao](https://discuss.kotlinlang.org/u/giokkao)\
**Post date:** [May 19, 2018, 4:05pm UTC](https://discuss.kotlinlang.org/t/fail-to-set-up-tornadofx-project-on-intellij/7847/8 "2018-05-19T16:05:43Z")

</div>

Problem solved by re-importing the project through the `build.gradle` file from the IntelliJ starting page. A “Frameworks Detected” notification will then show up.

 ![2018-05-19%2023-46-06](https://us1.discourse-cdn.com/flex019/uploads/kotlinlang/original/2X/8/8c1f08c3557e490afbe380871b04fdf814866900.png)

Thanks for the suggestion from Slack community.

---

<div class="post-metadata">

**Author:** ![darksnake](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/darksnake/32/2479_2.png) [@darksnake](https://discuss.kotlinlang.org/u/darksnake)\
**Post date:** [May 19, 2018, 4:13pm UTC](https://discuss.kotlinlang.org/t/fail-to-set-up-tornadofx-project-on-intellij/7847/9 "2018-05-19T16:13:58Z")

</div>

If that is the problem, you can open project explorer using F4 button on project tree and add a facet tornadofx to the module. Usually tornadofx framework detection has some glitches on multi-module builds.

---

<div class="post-metadata">

**Author:** ![slovarik](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@slovarik](https://discuss.kotlinlang.org/u/slovarik)\
**Post date:** [May 27, 2018, 7:22am UTC](https://discuss.kotlinlang.org/t/fail-to-set-up-tornadofx-project-on-intellij/7847/10 "2018-05-27T07:22:37Z")

</div>

Just in case OpenJDK lurkers will hit this topic I want to note that OpenJDK is not bundled with JavaFX and you might get a similar error, `javafx` imports won’t be recognized.  
If you want to use TornadoFX with OpenJDK (considering that your OS is Ubuntu) there is an [answer](https://stackoverflow.com/a/34244308/7598113) on StackOverflow on how to add JavaFX to your OpenJDK.

Just install `openjfx` package and then re-add JDK in your project to force IDEA to reload the classes.
