none
java-version' is not recognized as an internal or external command, operable program or batch file RRS feed

  • Question

  • I have a problem, I have installed the latest version of Java, but when I go to cmd and I get java-version throw me java-version it is not recognized as an internal or external command,<div>operable program or batch file.</div><div>I have the same question, I need to install JRE 1.7 or later for an Android application that requires a Java JRE. Do I need to install JRE 1.7 because I already have Javas installed? If I need to download it? The application will not connect to the computer's array because it is installed on the phone and on the computer it is control android over pc in real time app.</div><div>It's called Desk Dock app desk dock app/windows ser</div><div><p>What should I do?<img alt="" src="https://social.msdn.microsoft.com/Forums/getfile/1383380" /></p><p>They sent me here from the Microsoft Forum. I apologize that I did not ask a question in a forum where I need because I do not know where to ask this question.&nbsp;</p></div>
    Monday, January 21, 2019 10:51 AM

All replies

  • Hello Dejanx,

    1. Make sure you have added "%JAVA_HOME%\bin;" to your PATH environment variables.
    2. "java -version" but not "java-version". There is a space between command "java" and parameter "-version".

    Best regards,

    Drake


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    Tuesday, January 22, 2019 7:09 AM
    Moderator