Errors following "Getting Started with IntelliJ IDEA page


I have tried following the steps in Getting Started but can never get the resulting project to build or run. I am using IDEA 2016.1.1 and the latest Kotlin plugin.

Currently I create the minimal ‘app.kt’ file shown on the tutorial and try to build and get the following message:

Error:Internal error: (java.lang.NoClassDefFoundError) Could not initialize class org.jetbrains.jps.incremental.BuilderRegistry$Holder
java.lang.NoClassDefFoundError: Could not initialize class org.jetbrains.jps.incremental.BuilderRegistry$Holder
    at org.jetbrains.jps.incremental.BuilderRegistry.getInstance(
        at org.jetbrains.jps.cmdline.BuildRunner.runBuild(
    at org.jetbrains.jps.cmdline.BuildSession.runBuild(
    at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler$
        at org.jetbrains.jps.service.impl.SharedThreadPoolImpl$
    at java.util.concurrent.Executors$
    at java.util.concurrent.ThreadPoolExecutor.runWorker(
        at java.util.concurrent.ThreadPoolExecutor$

I was able to ‘hand-create’ a gradle project that I could build from the command line and then import that into IDEA. So what is the proper incantation to get the Kotlin plugin to work?



Well, if anyone else has this problem I had to solve it by completely uninstalling IDEA, removing the “Program Files\JetBrains” directory, going to the Users directory and removing all the .idea directories and then re-installing. That solved the problem.


You can also try “File > Invalidate Caches / Restart”.


I was having the same issue, but updating to jdk1.8.0_144.jdk fixed it for me.

57 PM