title: Netbeans IDE 11 cannot access java.lang Fatal Error: Unable to find package java.lang in classpath or bootclasspath
body: <p>I downloaded netbeans ide 11 and tried to do a sample hello world project but it is giving me error &quot;cannot access java.lang
  Fatal Error: Unable to find package java.lang in classpath or bootclasspath&quot;
  I tried some solutions from stack overflow but didnt worked.</p>
  <pre><code>/*
   * To change this license header, choose License Headers in Project Properties.
   * To change this template file, choose Tools | Templates
   * and open the template in the editor.
   */
  package javaapplication1;
  
  /**
   *
   * @author ahmad
   */
  public class JavaApplication1 {
  
      /**
       * @param args the command line arguments
       */
      public static void main(String[] args) {
          // TODO code application logic here
          System.out.println(&quot;Hello&quot;);
      }
      
  }
  </code></pre>
  <h2>Main error is
  &quot; cannot access java.lang
  Fatal Error: Unable to find package java.lang in classpath or bootclasspath</h2>
  <p>&quot;<a href="https://i.stack.imgur.com/7mkRk.png" rel="noreferrer"><img src="https://i.stack.imgur.com/7mkRk.png" alt="enter image description here" /></a></p>