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.
"-with-target-bits=32"
instead of64
, or check that you installed64-bit
gdb
. – Zobias