0

我正在构建一个 java 应用程序,它使用 jni 调用 c++ dll 的某些函数。当我尝试构建我的 dll 时,我收到一个弹出消息,提示找不到或不匹配“javaw.exe”的调试信息。无法找到或打开 pdb 文件。我已经设置了我的环境变量。这是正常的,如果不是有没有办法避免它?

'javaw.exe': Loaded 'C:\Program Files\Java\jdk1.7.0_13\jre\bin\javaw.exe', Cannot find or open the PDB file
'javaw.exe': Loaded 'C:\Windows\System32\ntdll.dll', Symbols loaded (source information stripped).
'javaw.exe': Loaded 'C:\Windows\System32\kernel32.dll', Symbols loaded (source information stripped).
'javaw.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Symbols loaded (source information stripped).
'javaw.exe': Loaded 'C:\Windows\System32\advapi32.dll', Symbols loaded (source information stripped).
'javaw.exe': Loaded 'C:\Windows\System32\user32.dll', Symbols loaded (source information stripped).
'javaw.exe': Loaded 'C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9200.16384_none_418c2a697189c07f\comctl32.dll', Symbols loaded (source information stripped).
'javaw.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Symbols loaded (source information stripped).
'javaw.exe': Loaded 'C:\Windows\System32\sechost.dll', Symbols loaded (source information stripped).
'javaw.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Symbols loaded (source information stripped).
'javaw.exe': Loaded 'C:\Windows\System32\gdi32.dll', Symbols loaded (source information stripped).
'javaw.exe': Loaded 'C:\Windows\System32\imm32.dll', Symbols loaded (source information stripped).
'javaw.exe': Loaded 'C:\Windows\System32\msctf.dll', Symbols loaded (source information stripped).
'javaw.exe': Loaded 'C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvStInit64.dll', Cannot find or open the PDB file
'javaw.exe': Loaded 'C:\Windows\System32\psapi.dll', Symbols loaded (source information stripped).
'javaw.exe': Loaded 'C:\Windows\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6871_none_08e717a5a83adddf\msvcr90.dll', Symbols loaded (source information stripped).
'javaw.exe': Loaded 'C:\Program Files\Java\jdk1.7.0_13\jre\bin\msvcr100.dll', Symbols loaded (source information stripped).
'javaw.exe': Loaded 'C:\Program Files\Java\jdk1.7.0_13\jre\bin\server\jvm.dll', Cannot find or open the PDB file
'javaw.exe': Loaded 'C:\Windows\System32\wsock32.dll', Symbols loaded (source information stripped).
'javaw.exe': Loaded 'C:\Windows\System32\winmm.dll', Symbols loaded (source information stripped).
'javaw.exe': Loaded 'C:\Windows\System32\ws2_32.dll', Symbols loaded (source information stripped).
'javaw.exe': Loaded 'C:\Windows\System32\winmmbase.dll', Symbols loaded (source information stripped).
'javaw.exe': Loaded 'C:\Windows\System32\nsi.dll', Symbols loaded (source information stripped).
'javaw.exe': Loaded 'C:\Program Files\Java\jdk1.7.0_13\jre\bin\verify.dll', Cannot find or open the PDB file
'javaw.exe': Loaded 'C:\Program Files\Java\jdk1.7.0_13\jre\bin\java.dll', Cannot find or open the PDB file
'javaw.exe': Loaded 'C:\Program Files\Java\jdk1.7.0_13\jre\bin\zip.dll', Cannot find or open the PDB file
'javaw.exe': Loaded 'C:\Users\anael\Documents\INF2990\Cadriciel\Exe\DLL\INF2990.dll', Symbols loaded.
'javaw.exe': Loaded 'C:\Windows\System32\opengl32.dll', Symbols loaded (source information stripped).
'javaw.exe': Loaded 'C:\Program Files\Java\jdk1.7.0_13\jre\bin\jawt.dll', Cannot find or open the PDB file
4

1 回答 1

0

是的,这很正常。

Visual Studio 只是说你在调试时找不到显示 C++ 源代码所需的 pdb 文件——但不是你的源代码,而是 javaw.exe 本身的源代码(你不需要,如果有的话是问题,发现错误的可能性在您的代码中,而不是在 Oracle 中是相当大的)。

于 2013-02-04T20:13:03.223 回答