When I tried to debug the openjdk9 by netbeans8.2 in win10, I got the following error:
"\"D:/jdk9/jdk9/build/windows-x86_64-normal-server-fastdebug/jdk/bin/java.exe\":
not in executable format: File format not recognized"
How can I fix it?
I build the source code by command "./configure -with-freetype=/cygdrive/c/freetype -enable-debug -with-target-bits=64"
, then run make all
, I also tried slowdebug
, however, that also failed.
If I "run" the project instead of "debug", it runs successfully like below, so there is no issue for the file windows-x86_64-normal-server-fastdebug/jdk/bin/java.exe
, it seems the gdb
doesn't recognize the java.exe
file.
Also I opened the openjdk
source code from the location D:/jdk9/jdk/common/nb_native
by netbeans
, see below:
And tried to build it by netbeans
, however, it produces the following error:
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)
I know that both paths /cygdrive/d/jdk9/jdk/configure
and /cygdrive/d/jdk9/jdk/common/autoconf/configure
exist.
This is how I configured the pre-built commands:
If you build the openjdk -with-target-bits = 64
, then make sure that you installed a 64-bit gdb
, or build the openjdk in 32-bit mode.
Your steps to import the nbproject
looks correct.
Change Build => Pre-Build
properties:
Set "Working Directory" to ../..
Set "Command Line" to sh ./configure ...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With