JDK is not available at command prompt

Asked 2 years ago, Updated 2 years ago, 97 views

I think I installed JDK and passed it through Path.

Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>javac-version
'javac' is an internal command or an external command.
Not recognized as an operational program or batch file.

Even if you try to display Path,

 C:\WINDOWS\system32>path
PATH=";C:\Program Files\java\jdk-9.0.1\";C:\Program Files\java\jdk-9.0.1\

C:\WINDOWS\system32>

will be displayed as .
After examining the possible causes,

I tried, but I couldn't. java-version goes through, but javac-version doesn't go through.

Thank you for your cooperation.

java command-prompt

2022-09-30 20:18

2 Answers

By default, javac.exe is installed in the C:\Program Files\Java\jdk-9.0.1\bin folder.Therefore, the environment variable PATH must be set to C:\Program Files\Java\jdk-9.0.1\bin instead of C:\Program Files\Java\jdk-9.0.1.


2022-09-30 20:18

Results,
Enter new JAVA_HOME as "Installation destination"
Then
"When I entered ""install destination bin"" in the path, it passed."I didn't need a backslash or; in my case.


2022-09-30 20:18

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.