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 modify your "PATH" environment variable to add your "java" bin location, one way via command prompt set path=%path%;;
set path=%path%;;
But this will be set only for your current session of your terminal.