YuF*_*hen 11 gdb jvm jvm-hotspot
当我尝试在win10中通过netbeans8.2调试openjdk9时,我收到以下错误:
"\"D:/jdk9/jdk9/build/windows-x86_64-normal-server-fastdebug/jdk/bin/java.exe\":
not in executable format: File format not recognized"
Run Code Online (Sandbox Code Playgroud)
我该如何解决?
我按命令构建源代码"./configure -with-freetype=/cygdrive/c/freetype -enable-debug -with-target-bits=64"
,然后运行make all
,但我也试过slowdebug
,但也失败了.
如果我"运行"项目而不是"debug",它会像下面那样成功运行,因此文件没有问题windows-x86_64-normal-server-fastdebug/jdk/bin/java.exe
,似乎gdb
无法识别java.exe
文件.
我也打开了openjdk
源代码的位置D:/jdk9/jdk/common/nb_native
的netbeans
,见下图:
netbeans
然而,尝试构建它,它会产生以下错误:
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)
Run Code Online (Sandbox Code Playgroud)
我知道这两个路径/cygdrive/d/jdk9/jdk/configure
和/cygdrive/d/jdk9/jdk/common/autoconf/configure
存在.