title: Using the correct JDK or changing default in Netbeans on Linux OS
body: <p>Disclaimer: I am new to Java, new to Linux, and new to Netbeans - apologies for any over/under explanation - please ask and I will add/remove info.</p>
  
  <p>I have a model written in Java in <strong>Netbeans 8.2</strong> that has been successfully running in NetBeans 8.2 on Mac OS. This version of NetBeans was downloaded with <strong>JDK8u171</strong> (JDK/Java package).</p>
  
  <p>All components of the model have successfully transferred through FTP (filezilla) to a remote Linux machine.</p>
  
  <p>The Linux machine has a copy of <strong>Netbeans 8.2</strong> and has <strong>java/1.8.0-oracle</strong> (and 1.6.0 and 1.7.0), and has <strong>java/1.8.0-openjdk</strong> (similarly, 1.6.0 and 1.7.0 also).</p>
  
  <p>I am assuming that 1.8.0-oracle is the equivalent of JDK8u171 but I may well be wrong.</p>
  
  <p>When I load netbeans using </p>
  
  <pre><code>module load java/1.8.0-oracle
  module load netbeans
  netbeans
  </code></pre>
  
  <p>The program opens (via remote desktop - <strong>x2goclient</strong>), and I can search for the project and open it.</p>
  
  <p>Once open, I see:</p>
  
  <p>'<em>myprojectitle (broken)</em>' in the project window on the left of the NetBeans GUI</p>
  
  <p>right click -> resolve problems </p>
  
  <p>...opens a screen saying </p>
  
  <p><em>'The JDK is missing and is required to run some NetBeans modules Please use the --jdkhome command line option to specify a JDK installation or see <a href="http://wiki.netbeans.org/FaqRunningOnJre" rel="nofollow noreferrer">http://wiki.netbeans.org/FaqRunningOnJre</a> for more information.'</em></p>
  
  <p>Does this mean I am using the wrong jdk/java package? </p>
  
  <p>Or is the jdk package configured incorrectly in Netbeans, if so how can I reconfigure?</p>
  
  <p>Any help would be greatly appreciated.</p>