title: Intellij : JDK Required: 'tools.jar' seems to be not in IDEA classpath Ubuntu 16.04
body: <p>I looked over to a lot of answers here on SO, and followed them too, yet the error persists and I cannot start the <code>Intellij</code> for java.
  Here is my <code>java</code> version </p>
  
  <pre><code>openjdk version "9-internal"
  OpenJDK Runtime Environment (build 9-internal+0-2016-04-14-195246.buildd.src)
  OpenJDK 64-Bit Server VM (build 9-internal+0-2016-04-14-195246.buildd.src, mixed mode)
  </code></pre>
  
  <p>my <code>javac</code> version</p>
  
  <p><code>javac 9-internal
  </code></p>
  
  <p>my <strong>$JAVA_HOME</strong></p>
  
  <pre><code>/usr/lib/jvm/java-8-openjdk-amd64
  </code></pre>
  
  <p>When I <code>cd</code> into <code>&lt;ide_folder&gt;/bin</code> and run <code>./idea.sh</code></p>
  
  <p>I get following <code>error</code></p>
  
  <pre><code>JDK Required: 'tools.jar' seems to be not in IDEA classpath.
  Please ensure JAVA_HOME points to `JDK` rather than `JRE`.
  </code></pre>
  
  <p>and when I do <code>sudo ./idea.sh</code> I get following error</p>
  
  <pre><code>WARN: Unknown class loader: jdk.internal.loader.ClassLoaders$AppClassLoader
  WARN: Unknown class loader: jdk.internal.loader.ClassLoaders$PlatformClassLoader
  WARN: Unknown class loader: jdk.internal.loader.ClassLoaders$AppClassLoader
  WARN: Unknown class loader: jdk.internal.loader.ClassLoaders$PlatformClassLoader
  
  JDK Required: 'tools.jar' seems to be not in IDEA classpath.
  Please ensure JAVA_HOME points to JDK rather than JRE.
  #
  # A fatal error has been detected by the Java Runtime Environment:
  #
  #  SIGSEGV (0xb) at pc=0x00007f5624a1e009, pid=15159, tid=15182
  #
  # JRE version: OpenJDK Runtime Environment (9.0) (build 9-internal+0-2016-04-14-195246.buildd.src)
  # Java VM: OpenJDK 64-Bit Server VM (9-internal+0-2016-04-14-195246.buildd.src, mixed mode, tiered, compressed oops, concurrent mark sweep gc, linux-amd64)
  # Problematic frame:
  # C  [libjava.so+0x1d009]  JNU_GetEnv+0x19
  #
  # Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %P" (or dumping to /home/ekbana/softwares/idea-IC-171.4694.23/bin/core.15159)
  #
  # An error report file with more information is saved as:
  # /home/ekbana/java_error_in_IDEA_15159.log
  #
  # If you would like to submit a bug report, please visit:
  #   http://bugreport.java.com/bugreport/crash.jsp
  # The crash happened outside the Java Virtual Machine in native code.
  # See problematic frame for where to report the bug.
  #
  Aborted (core dumped)
  </code></pre>
  
  <p>I have reached the point where I have no freaking idea what's happening.</p>