Cannot run Java from the Windows PowerShell command prompt

前端 未结 9 852
野性不改
野性不改 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:38

    You need to set the Java class path:

    Reference:

    How to set class path?

    Or:

    Link-2: How to set class path?

提交回复
热议问题