title: How to debug the openjdk9 by netbeans8.2 in win10?
body: <p>When I tried to debug the openjdk9 by netbeans8.2 in win10, I got the following error:</p>
  
  <pre><code>"\"D:/jdk9/jdk9/build/windows-x86_64-normal-server-fastdebug/jdk/bin/java.exe\": 
  not in executable format: File format not recognized"
  </code></pre>
  
  <p>How can I fix it? </p>
  
  <p>I  build the source code by command <code>"./configure -with-freetype=/cygdrive/c/freetype -enable-debug -with-target-bits=64"</code>, then run <code>make all</code>, I also tried <code>slowdebug</code>, however, that also failed.</p>
  
  <p><a href="https://i.stack.imgur.com/Ka44Y.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/Ka44Y.jpg" alt="enter image description here"></a></p>
  
  <p>If I "run" the project instead of "debug", it runs successfully like below, so there is no issue for the file <code>windows-x86_64-normal-server-fastdebug/jdk/bin/java.exe</code>, it seems the <code>gdb</code> doesn't recognize the <code>java.exe</code> file.
  <a href="https://i.stack.imgur.com/IXqus.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/IXqus.jpg" alt="enter image description here"></a></p>
  
  <p>Also I opened the <code>openjdk</code> source code from the location <code>D:/jdk9/jdk/common/nb_native</code> by <code>netbeans</code>, see below:
  <a href="https://i.stack.imgur.com/mAOGT.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/mAOGT.jpg" alt="enter image description here"></a></p>
  
  <p>And tried to build it by <code>netbeans</code>, however, it produces the following error:</p>
  
  <pre><code>cd 'D:\jdk9\jdk\common'
  sh ../configure --with-freetype=/cygdrive/c/freetype --with-debug-level=slowdebug --with-target-bits=64
  /cygdrive/d/jdk9/jdk/configure: /cygdrive/d/jdk9/jdk/common/autoconf/configure: No such file or directory
  PRE-BUILD FAILED (exit value 1, total time: 743ms)
  </code></pre>
  
  <p>I know that both paths <code>/cygdrive/d/jdk9/jdk/configure</code> and <code>/cygdrive/d/jdk9/jdk/common/autoconf/configure</code> exist.</p>
  
  <p>This is how I configured the pre-built commands:
  <a href="https://i.stack.imgur.com/jROM3.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/jROM3.jpg" alt="enter image description here"></a></p>