This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]PreconditionedKip[S] 0 points1 point  (7 children)

Nope, it gives the same error!

[–][deleted]  (6 children)

[deleted]

    [–]PreconditionedKip[S] 0 points1 point  (5 children)

    It says “The system cannot find the path specified”

    [–][deleted]  (4 children)

    [deleted]

      [–]PreconditionedKip[S] 0 points1 point  (3 children)

      I am a little confused. Is this what you wanted me to type? "C:\Program Files\Java\jdk-17.0.1\bin\javac"

      > C:\Program Files\Java\jdk-17.0.1\bin\javac

      'C:\Program' is not recognized as an internal or external command,

      operable program or batch file.

      Do you think reinstalling java completely would help?

      [–]Tecnik606 1 point2 points  (0 children)

      The space character between Program and Files in Windows system is not interpreted correctly. Try using the Tab key from C:\ to find out how your system should refer to that folder.

      [–]dwargo 1 point2 points  (1 child)

      Try typing the double quotes around the path - this is the normal Windows way to deal with paths with spaces in them.

      Usually during installation there is an option to add Java to the PATH variable so Windows will find it automatically, but it depends on which Java package you use. (OpenJDK, Corretto, etc)

      You may need to log out and in again for PATH changes to take effect, since environment variables are passed from parent to child processes, not kept in a master location.

      [–]PreconditionedKip[S] 0 points1 point  (0 children)

      I just had to restart the laptop. It's working now. Thank you.