4

我最初在 TechNet 上发布了这个问题,但认为 StackOverflow 会更好! http://social.technet.microsoft.com/Forums/en-US/d0eee59e-3a40-4502-a896-d818758e6c45/cmd-prompt-not-accepting-or-isnt-detecting-my-keyboard-input

我有一个相当奇怪的问题,一个我以前从未遇到过的问题。实际上,我不确定以前是否有人遇到过这个问题。谷歌搜索似乎没有发现任何有用的东西,但希望这里有人可以提供一些启示。

我正在尝试创建一个密钥库,用于为 android 市场签署一个 android 应用程序。我一直按照此处的说明进行操作:http ://www.thomasmortensen.com/index.php/71-android-keystore-jdk

我也在其他网站上找到了相同的说明,据我所知,我正确地遵循了它们。

这给我带来了我的问题:当我开始执行“-keygen”命令时,它似乎工作正常,并且我看到了我需要提供的第一个字段来创建密钥库 - 密钥库密码。然而,当我开始键入时,我注意到我的输入没有被反映,即我没有看到任何*或任何其他文本。

据我所知,此时它接受的唯一输入是回车键。如果我按回车键并将值留空,它最终会退出命令,让我回到方块 1。

我的键盘处于完美的工作状态,我非常确定在此之前我正确输入了所有相关字段,所以我认为这与 Cmd Prompt 相关......可能吗?

在我的电脑(Windows 7 Ultimate)上尝试后不久,我尝试在另外两台计算机上执行此操作,一台运行 Windows 8(Pro),另一台运行 Windows 7(Ultimate),结果相同......

让我觉得这与 Cmd Prompt 无关!?:\

有没有人遇到过这个?

4

1 回答 1

16

Ok, so, a short while I ago I found a way "around" the problem which I think is worth sharing. Hopefully the next person to run into this problem will be saved a whole lot of pain!

Basically, input is in fact being received by the command prompt at the keystore password step, though, instead of displaying an asterisk or some other placeholder the command prompt simply remains blank at this point.

The input is being entered, just not reflected on screen. This makes it harder to be sure you've entered the correct input, but if you're very careful and have entered and confirmed the password values you will be able to successfully continue to the next step in the keygen process.

The next steps then continue to work as one would normally expect them to.

I still have no idea why the password step behaves so unexpectedly. If anyone has any insights I would be interested in hearing them.

于 2014-03-25T09:16:47.107 回答