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.
C:\\Program Files\\Java
You need to set the Java class path:
Reference:
How to set class path?
Or:
Link-2: How to set class path?