谢谢你这个文档。我的机器是64位win7,磕磕碰碰走到最后一步,然后出了问题:调试HotSpot VM。
问题是,按F5之后一个窗口闪过,vs2010的Output窗口有如下信息:
'java.exe': Loaded 'C:\downloads\myBooks\Java\OpenJDK\openjdk8u-dev\build\windows-x86_64-normal-server-fastdebug\images\j2sdk-image\bin\java.exe', Symbols loaded.
'java.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file
'java.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file
'java.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Cannot find or open the PDB file
'java.exe': Loaded 'C:\Windows\System32\advapi32.dll', Cannot find or open the PDB file
'java.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Cannot find or open the PDB file
'java.exe': Loaded 'C:\Windows\System32\sechost.dll', Cannot find or open the PDB file
'java.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Cannot find or open the PDB file
'java.exe': Loaded 'C:\Windows\System32\user32.dll', Cannot find or open the PDB file
'java.exe': Loaded 'C:\Windows\System32\gdi32.dll', Cannot find or open the PDB file
'java.exe': Loaded 'C:\Windows\System32\lpk.dll', Cannot find or open the PDB file
'java.exe': Loaded 'C:\Windows\System32\usp10.dll', Cannot find or open the PDB file
'java.exe': Loaded 'C:\Windows\winsxs\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_fa396087175ac9ac\comctl32.dll', Cannot find or open the PDB file
'java.exe': Loaded 'C:\Windows\System32\shlwapi.dll', Cannot find or open the PDB file
'java.exe': Loaded 'C:\Windows\System32\imm32.dll', Cannot find or open the PDB file
'java.exe': Loaded 'C:\Windows\System32\msctf.dll', Cannot find or open the PDB file
'java.exe': Loaded 'C:\downloads\myBooks\Java\OpenJDK\openjdk8u-dev\build\windows-x86_64-normal-server-fastdebug\images\j2sdk-image\jre\bin\msvcr100.dll', Symbols loaded.
The program '[7472] java.exe: Native' has exited with code 6 (0x6).
从出错信息上看,大概是说包含调试信息的pdb文件没有找到。
不过我编译整个opendjk8用的参数是--enable-debug,所以应该pdb都产生了。只是没有指定路径。
Did I miss anything important ?
谢谢。