title: Trouble compiling java 9 in Intellij
body: <p>I am trying toplay around with Java9 in the latest intellij (community edition):</p>
  <p>IntelliJ IDEA 2016.3
  Build #IC-163.7743.44, built on November 17, 2016
  JRE: 1.8.0_112-release-408-b2 x86
  JVM: OpenJDK Server VM by JetBrains s.r.o.</p>
  <p>Without writing any code:</p>
  <pre><code>Error:Abnormal build process termination: 
  C:\Users\pisarevv\Desktop\jdk-9\bin\java -Xmx700m -Djava.awt.headless=true -Djdt.compiler.useSingleThread=true -Dcompile.parallel=false -Drebuild.on.dependency.change=true -Djava.net.preferIPv4Stack=true -Dio.netty.initialSeedUniquifier=1630946162877517857 -Dfile.encoding=windows-1252 -Djps.file.types.component.name=CommunityFileTypes -Duser.language=en -Duser.country=US -Didea.paths.selector=IdeaIC2016.3 &quot;-Didea.home.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2016.3&quot; -Didea.config.path=C:\Users\pisarevv\.IdeaIC2016.3\config -Didea.plugins.path=C:\Users\pisarevv\.IdeaIC2016.3\config\plugins -Djps.log.dir=C:/Users/pisarevv/.IdeaIC2016.3/system/log/build-log &quot;-Djps.fallback.jdk.home=C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/jre/jre&quot; -Djps.fallback.jdk.version=1.8.0_112-release -Djava.io.tmpdir=C:/Users/pisarevv/.IdeaIC2016.3/system/compile-server/_temp_ -Dkotlin.incremental.compilation.experimental=true -Dkotlin.daemon.enabled -Dkotlin.daemon.client.alive.path=\&quot;C:\Users\pisarevv\AppData\Local\Temp\kotlin-idea-451096579120734544-is-running\&quot; -classpath &quot;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/jps-launcher.jar;C:/Users/pisarevv/Desktop/jdk-9/lib/tools.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/optimizedFileManager.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/ecj-4.6.1.jar&quot; org.jetbrains.jps.cmdline.Launcher &quot;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/jps-builders.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/jna.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/asm-all.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/forms_rt.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/annotations.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/util.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/netty-all-4.1.5.Final.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/snappy-in-java-0.5.1.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/trove4j.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/openapi.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/jps-model.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/nanoxml-2.2.3.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/javac2.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/jna-platform.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/rt/jps-plugin-system.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/protobuf-2.5.0.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/jdom.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/oromatcher.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/idea_rt.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/log4j.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/resources_en.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/jgoodies-forms.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/plugins/IntelliLang/lib/intellilang-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/plugins/Groovy/lib/groovy-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/plugins/Groovy/lib/groovy-rt-constants.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/plugins/maven/lib/maven-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/plugins/maven/lib/aether-dependency-resolver.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/plugins/maven/lib/aether-1.1.0-all.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/plugins/maven/lib/maven-aether-provider-3.3.9-all.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/plugins/maven/lib/plexus-utils-2.0.6.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/plugins/Kotlin/lib/jps/kotlin-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/plugins/Kotlin/lib/kotlin-runtime.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/plugins/Kotlin/lib/kotlin-reflect.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/plugins/Kotlin/lib/kotlin-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/plugins/Kotlin/lib/kotlin-android-extensions-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/plugins/Kotlin/lib/kotlin-android-extensions-compiler-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/plugins/javaFX/lib/javaFX-jps-plugin.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/plugins/javaFX/lib/common-javaFX-plugin.jar&quot; org.jetbrains.jps.cmdline.BuildMain 127.0.0.1 62860 aa8c9c68-3477-48ea-9f1c-5086eaa5935d C:/Users/pisarevv/.IdeaIC2016.3/system/compile-server
  Build process started. Classpath: C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/jps-launcher.jar;C:/Users/pisarevv/Desktop/jdk-9/lib/tools.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/optimizedFileManager.jar;C:/Program Files (x86)/JetBrains/IntelliJ IDEA Community Edition 2016.3/lib/ecj-4.6.1.jar
  Exception in thread &quot;main&quot; java.lang.reflect.InvocationTargetException
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:537)
      at org.jetbrains.jps.cmdline.Launcher.main(Launcher.java:59)
  Caused by: java.lang.ExceptionInInitializerError
      at com.intellij.util.concurrency.AtomicFieldUpdater.&lt;clinit&gt;(AtomicFieldUpdater.java:41)
      at com.intellij.util.containers.ConcurrentIntObjectHashMap.getUnsafe(ConcurrentIntObjectHashMap.java:2787)
      at com.intellij.util.containers.ConcurrentIntObjectHashMap.&lt;clinit&gt;(ConcurrentIntObjectHashMap.java:2752)
      at com.intellij.util.containers.ContainerUtil.createConcurrentIntObjectMap(ContainerUtil.java:2489)
      at com.intellij.util.containers.ConcurrentRefValueIntObjectHashMap.&lt;init&gt;(ConcurrentRefValueIntObjectHashMap.java:31)
      at com.intellij.util.containers.ConcurrentWeakValueIntObjectHashMap.&lt;init&gt;(ConcurrentWeakValueIntObjectHashMap.java:31)
      at com.intellij.util.containers.ContainerUtil.createConcurrentIntObjectWeakValueMap(ContainerUtil.java:2530)
      at com.intellij.openapi.util.Key.&lt;clinit&gt;(Key.java:38)
      at org.jetbrains.jps.incremental.Utils.&lt;clinit&gt;(Utils.java:40)
      at org.jetbrains.jps.cmdline.BuildMain.main(BuildMain.java:82)
      ... 5 more
  Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make private jdk.internal.reflect.ConstructorAccessor java.lang.reflect.Constructor.acquireConstructorAccessor() accessible: module java.base does not &quot;opens java.lang.reflect&quot; to unnamed module @4f9a3314
      at java.base/jdk.internal.reflect.Reflection.throwInaccessibleObjectException(Reflection.java:424)
      at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:199)
      at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:192)
      at java.base/java.lang.reflect.Method.setAccessible(Method.java:186)
      at com.intellij.util.ReflectionUtil.findMethod(ReflectionUtil.java:265)
      at com.intellij.util.ReflectionUtil.getDeclaredMethod(ReflectionUtil.java:279)
      at com.intellij.util.ReflectionUtil.&lt;clinit&gt;(ReflectionUtil.java:422)
      ... 15 more
  </code></pre>
  <p>Does someone have an idea how to resolve this or should I simply wait until they release another version?</p>