title: Cannot run Apache Netbeans 11 using JDK 11
body: <p>No matter what I do, I can't get Netbeans 11 to work with JDK 11. Can you help me out?</p>
  
  <p>Please note that this issue does NOT occur with JDK 8.</p>
  
  <p>Downloaded and installed JDK 11 to C:\Program Files\Java\jdk-11.0.4</p>
  
  <p>Downloaded and unzipped Netbeans 11 to C:\Program Files\netbeans</p>
  
  <p>The etc/netbeans.conf file has been edited to set JDK home:</p>
  
  <blockquote>
    <p>netbeans_jdkhome="C:\Program Files\Java\jdk-11.0.4"</p>
  </blockquote>
  
  <p>When trying to run bin/netbeans64.exe:</p>
  
  <blockquote>
    <p>First time: The loading window appears, loads for a bit, and then the
    whole program disappears.</p>
    
    <p>Second time: Loading window does not appear. An empty Java application
    appears.</p>
    
    <p>If I go to Task Manager and manually end the Netbeans process, I can
    get back to First time.</p>
  </blockquote>
  
  <p><strong>For the attachments listed below, please refer to the issue I created here:</strong>
  <a href="https://issues.apache.org/jira/browse/NETBEANS-2865" rel="nofollow noreferrer">https://issues.apache.org/jira/browse/NETBEANS-2865</a></p>
  
  <p>Executing netbeans64.exe from PowerShell outputs error messages to the console. They can be found in consoleOutput.txt attachment.</p>
  
  <p>The results from executing bin/netbeans64.exe --trace C:\netbeans.log can be found in netbeans.log attachment.</p>
  
  <p>For reference, this is the tutorial I followed:</p>
  
  <p><a href="https://www.youtube.com/watch?v=cxh-hVty09g" rel="nofollow noreferrer">https://www.youtube.com/watch?v=cxh-hVty09g</a></p>
  
  <p><strong>Update &amp; Solution</strong></p>
  
  <p>I FINALLY got it to work thanks to the answer provided by skomisa. </p>
  
  <p>The issue was caused by Netbeans 11.0 importing settings from a previous version. There was a popup the first time I ran Netbeans 11.0 asking if I wanted to import my settings from a previous version. Refer to skomisa's answer for more details on why.</p>
  
  <p>To solve it, I deleted ALL of the preference files for NetBeans 11 by deleting the entire folder in AppData.</p>
  
  <blockquote>
    <p>C:\Users\Hunter\AppData\Roaming\NetBeans\11.0\</p>
  </blockquote>
  
  <p>Skomisa's answer mentioned trying to create a new unzipped version of NetBeans 11 and not importing the settings. I had actually tried this previously, but never got the popup window asking if you want to import. I assume this is because the user preference files for this version of NetBeans have already been created and are still sitting in AppData.</p>
  
  <p>This leaves you with two viable options:</p>
  
  <ol>
  <li>Delete all of the user preference files for NetBeans 11.0.</li>
  <li>Search through the entire folder for instances of <code>\u0000</code> and remove them. </li>
  </ol>
  
  <p>It seemed easier and more satisfactory to remove the entire folder and start from scratch. That way, all of my user preference files are using the newest practices accepted by the JDK and Netbeans and that, hopefully, there is no lingering legacy code that will randomly break the next time I update.</p>
  
  <p>Thanks for everyone's help!</p>