lascale.blogg.se

Javafx kotlin
Javafx kotlin






  • To get around this you can manually delete the build directory every time before you attempt to run your application in the IDE.
  • The appropriate way to handle these would be to create bug request for IntelliJ in the Idea issue tracker.Ī new project (created as described in the question) will work the first time you try to run it then, it will fail with the error (also as described in the question):Įrror occurred during initialization of boot layer : Error reading module: C:\Users\User\IdeaProjects\demo\build\classes\java\main Caused by: : Package not found in module

    javafx kotlin

    IntelliJ IDEA 2021.2.3 (Community Edition) currently has some bugs and mistakes in the way it generates and uses JavaFX+Gradle+Kotlin projects using the Idea New JavaFX project wizard. I tried it in my environment (OS X), following the same steps and versions as you provide in your question, and I get the same result as you. It would appear that this is a general issue with Kotlin+Gradle in Idea when using the Java Platform module system, and that it is not a specific issue just with the code created by the Gradle+JavaFX+Kotlin "New JavaFX Project" wizard (which is what I had assumed it was). The root cause of the issue is explained in the attached youtrack case.

    javafx kotlin javafx kotlin

    As noted by Andrey in comments, this appears to be an known bug:








    Javafx kotlin