简体   繁体   English

如何在Windows Pro中从命令行运行应用程序?

[英]How do you run applications from the command-line in windows pro?

I am trying to run 我正在尝试跑步

C:\\Users\\johnkooz>C:\\Program Files\\Java\\jdk1.8.0_60\\bin\\javac.exe C:\\ Users \\ johnkooz> C:\\ Program Files \\ Java \\ jdk1.8.0_60 \\ bin \\ javac.exe

but the cmd response is always 但是cmd响应总是

'C:\\Program' is not recognized as an internal or external command, operable program or batch file. 无法将“ C:\\ Program”识别为内部或外部命令,可操作程序或批处理文件。

Please help! 请帮忙! Thanks mates! 谢谢队友!

Run it like this C:\\Users\\johnkooz>"C:\\Program Files\\Java\\jdk1.8.0_60\\bin\\javac.exe" 像这样运行它C:\\ Users \\ johnkooz>“ C:\\ Program Files \\ Java \\ jdk1.8.0_60 \\ bin \\ javac.exe”

Notice quotes. 注意报价。

You can also modify the PATH variable so that you can avoid typing the full path to javac. 您还可以修改PATH变量,以便避免键入javac的完整路径。 All you have to do is append C:\\Program Files\\Java\\jdk1.8.0_60\\bin; 您所要做的就是追加C:\\ Program Files \\ Java \\ jdk1.8.0_60 \\ bin; to the PATH variable. 到PATH变量。 After you do this, just type something like javac -version from any directory to see if things are working. 完成此操作后,只需在任何目录中键入javac -version之类的内容即可查看一切是否正常。 If it is, you should get the version information. 如果是这样,您应该获取版本信息。

You can find more info here: https://docs.oracle.com/javase/tutorial/essential/environment/paths.html 您可以在这里找到更多信息: https : //docs.oracle.com/javase/tutorial/essential/environment/paths.html

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM