Не удается запустить Java из командной строки Windows PowerShell

У меня установлена Java на моей машине (JRE находится подC:\Program Files\Java), но я не могу запустить команду Java из командной строки Windows PowerShell.

>>> java -version
java : The term 'java' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ java
+ ~~~~
    + CategoryInfo          : ObjectNotFound: (java:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Тем не менее, я заметил, что Java работает и что яМожно Запустите команды Java в старой командной строке Windows. Оказывается, это только PowerShell, где я не могу выполнить эти команды.

У меня есть JRE 7, и я использую Windows PowerShell на Windows 8.

Ответы на вопрос(8)

Ваш ответ на вопрос