title: Intellij can't find java.net.http when compiling with Java 11
body: <p>I'm trying to get one of my projects ready for Java 11 but for some reason Intellij can't find <a href="https://download.java.net/java/early_access/jdk11/docs/api/java.net.http/module-summary.html" rel="noreferrer"><code>java.net.http</code></a>. It isn't underlining it as not found in <code>module-info.java</code> like it would if I typed it wrong but when I try build the project I get the error below. I've tried reinstalling Intellij 2018.2.3 and uninstalling all other versions of Java. Any advice on how to get this working would be appreciated.</p>
  
  <p>Error:</p>
  
  <pre><code>Information:java: Errors occurred while compiling module 'crawler'
  Information:javac 11 was used to compile java sources
  Information:15/09/2018 11:16 - Compilation completed with 1 error and 0 warnings in 636 ms
  C:\Users\Will\IdeaProjects\crawler\src\module-info.java
  Error:(2, 22) java: module not found: java.net.http
  </code></pre>
  
  <p>module-info.java:</p>
  
  <pre><code>module crawler {
      requires java.net.http;
  }
  </code></pre>
  
  <p>Request.java:</p>
  
  <pre><code>package Request;
  
  import java.io.IOException;
  import java.net.URI;
  import java.net.http.HttpClient;
  import java.net.http.HttpRequest;
  import java.net.http.HttpResponse;
  
  public class Request {
      public static void main(String[] args) throws IOException, InterruptedException {
          System.out.println("starting download");
          String body = HttpClient.newBuilder().build().send(HttpRequest.newBuilder().uri(URI.create("https://example.com")).build(), HttpResponse.BodyHandlers.ofString()).body();
          System.out.println("finished download:" + body);
      }
  }
  </code></pre>
  
  <p>Structure:</p>
  
  <pre><code>crawler
      src
          Request
              Request.java
          module-info.java
  </code></pre>