2017-05-30 67 views

回答

5

对于下面的指南,我们要添加一个名为mytool.exe的实例工具,它位于C:\Users\NewFolderInPath\mytool.exe中,以便每次我想要执行mytool实用程序时,我都不必指定完整路径。

我以此为例,您可以用更实际的东西替换文件夹,如位于此处的JDK bin目录C:\Program Files\Java\{JDK_VERSION}\bin以执行javackeytool或您想要的任何东西。

步骤1 - 点击Windows图标

enter image description here

步骤2 - 点击Settings图标

enter image description here

步骤3 - 点击System

enter image description here

步骤4 - 点击About

enter image description here

步骤5 - 点击System info

enter image description here

步骤6 - 点击Advanced system settings

enter image description here

步骤7 - 点击Environment variables...

enter image description here

步骤8 - 选择Path行,然后单击Edit

enter image description here

步骤9 - 点击New,然后单击Browse,然后在接下来的面板将打开你需要选择你的Path所需的文件夹。对于本指南的首要前提,我将添加的文件夹C:\Users\NewFolderInPath

enter image description here

步骤10 - 点击OK,点击每一个OK按钮,你会遇到封闭每个以前的Windows。

enter image description here

步骤11 - 打开一个command prompt (cmd),现在你可以在不指定完整路径执行你的工具。

enter image description here

注:对于每一个问题,在下面留言,我会尽快我可以回答。 祝你好运和快乐编码:)

+0

除此之外演练这段视频是有帮助的 - https://www.youtube.com/watch?v=extCL1UU5wk,所以是这个https://www.youtube。 com/watch?v = gBHOeI5QB8M了解什么测试命令可以尝试,并且它不会工作,直到您关闭命令提示符并重新打开它(看起来像我现在有keytool正在运行:) – NukeouT