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
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.