Cannot run Java from the Windows PowerShell command prompt

前端 未结 9 850
野性不改
野性不改 2020-12-16 16:55

I have Java installed on my machine (the JRE is under C:\\Program Files\\Java) but I can\'t run any java command from the Windows PowerShell command prompt.

9条回答
  •  失恋的感觉
    2020-12-16 17:33

    If it works in cmd, but not in PowerShell, your JDK path entry might be in quotes.

    As described in an answer to another question, go to system variables, edit the raw text of Path and simply remove the quotes.

提交回复
热议问题