简体   繁体   English

我收到此错误:'jdb' 不是内部或外部命令,也不是可运行的程序或批处理文件。”

[英]I get this error: 'jdb' is not recognized as an internal or external command, operable program or batch file."

I tried remote debugging using Java debugger(jdb).我尝试使用 Java 调试器(jdb)进行远程调试。 Even though I have installed the jdk and set the JAVA_HOME variable properly but I get an error as above mentioned.即使我已经安装了 jdk 并正确设置了 JAVA_HOME 变量,但我收到了如上所述的错误。

'jdb' is not recognized as an internal or external command, operable program or batch file." 'jdb' 不是内部或外部命令,也不是可运行的程序或批处理文件。”

Can anyone please tell what I did wrong?谁能告诉我我做错了什么?

Necessary details: java -version java version "1.8.0_211" Java(TM) SE Runtime Environment (build 1.8.0_211-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.211-b12, mixed mode)必要的细节: java -version java version "1.8.0_211" Java(TM) SE Runtime Environment (build 1.8.0_211-b12) Java HotSpot(TM) 64-Bit Server VM(build 25.211-b12,混合模式)

Please be noted : Anyway all of my java projects in NetBeans and Eclipse everything is working fine with java jdk except remote debugging.请注意:无论如何,我在 NetBeans 和 Eclipse 中的所有 java 项目在 java jdk 上都运行良好,除了远程调试。

And also if I type, it prompts this error again This is the output image I got而且如果我输入,它会再次提示这个错误这是我得到的输出图像

jdb -version 'jdb' is not recognized as an internal or external command, operable program or batch file." jdb -version 'jdb' 不是内部或外部命令,也不是可运行的程序或批处理文件。”

The Java JDK is installed properly, that is why you dont have any issues with Eclipse and Netbeans. Java JDK 已正确安装,这就是您在使用 Eclipse 和 Netbeans 时没有任何问题的原因。 JDB isnt working because you have to add the Path to JDK in System Environment Variables. JDB 不起作用,因为您必须在系统环境变量中添加 JDK 的路径。 To do this;去做这个;

  • just search for "System Environment Variable" in the Taskbar search feature and hit {Enter}.只需在任务栏搜索功能中搜索“系统环境变量”,然后按 {Enter}。

  • Select "Advanced" tab if not already selected.如果尚未选择,请选择“高级”选项卡。

  • Click "Environment Variables"点击“环境变量”

  • Select "Path" in User variables or System variables (I have selected it just for my profile)在用户变量或系统变量中选择“路径”(我只为我的个人资料选择了它)

  • Click "Edit" and "Browse" to path of "C:\\Program Files\\JDK_version\\bin"单击“编辑”和“浏览”到“C:\\Program Files\\JDK_version\\bin”的路径

Now open up a new command prompt and enter现在打开一个新的命令提示符并输入

jdb -version jdb -版本

you should be able to see JDB version details.您应该能够看到 JDB 版本详细信息。

I know this is late, but anyone else with the same problem will hopefully find this helpful.我知道这已经很晚了,但其他有同样问题的人希望这会有所帮助。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误 -'javac' 不是内部或外部命令,也不是可运行的程序或批处理文件 - Error -'javac' is not recognized as an internal or external command, operable program or batch file 错误 - jar 不是内部或外部命令、可运行的程序或批处理文件 - Error - jar is not recognized as an internal or external command, operable program or batch file 'jar' 不是内部或外部命令、可运行程序或批处理文件错误 - 'jar' is not recognized as an internal or external command, operable program or batch file error 怎么修 ''。' 不被识别为内部或外部命令,可操作程序或批处理文件。 按任意键继续 。 。 。” geany错误? - How to fix ''.' is not recognized as an internal or external command, operable program or batch file. Press any key to continue . . .' error in geany? Java 路径问题,'java' 不被识别为内部或外部命令、可运行程序或批处理文件。 (javac也是) - Java path problems, 'java' is not recognized as an internal or external command, operable program or batch file. (javac too) 'C:\Users\[UserName]' 不是内部或外部命令、可运行程序或批处理文件。 VsCode中的Java - 'C:\Users\[UserName]' is not recognized as an internal or external command, operable program or batch file. Java in VsCode 'javac' 不是内部或外部命令,也不是可运行的程序或批处理文件。 在 VS Code 中,使用 Code Runner 扩展 - 'javac' is not recognized as an internal or external command, operable program or batch file. in VS Code, using Code Runner extension 如何解决错误:“ jar”无法识别为内部或外部命令,可操作程序或批处理文件? - How can I solve the error : 'jar' is not recognized as an internal or external command, operable program or batch file? 'appletviewer' 不是内部或外部命令,也不是可运行的程序或批处理文件 - 'appletviewer' is not recognized as an internal or external command, operable program or batch file 'wsgen'不被识别为内部或外部命令,可操作程序或批处理文件 - 'wsgen' is not recognized as an internal or external command, operable program or batch file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM