Installing Java JDK in Windows Vista thru Windows 10
- Testing Installation
- The Java JDK installation from Windows Vista thru Windows 10 is NOT properly done.
- Follow these instructions to test installation:
- start
- run
- cmd
- javac -version
- result:
- 'javac' is not recognized as an internal or external command, operable program or batch file.
- The reason for this error is that the path contents in Windows was not updated when the JDK was installed.
- Windows maintains a configuration file named path that tells windows which locations to look into to find commands we like to execute.
-
-
Please follow these instructions to fix this problem in all Windows Versions from Windows Vista to the current version
-
- To find the location where javac.exe is located, follow these instructions
- dir \javac.exe /s
- This is the answer, if javac.exe was actually installled:
-
- Volume in drive C is OS
- Directory of C:\Program Files\Java\jdk-11\bin
-
- 10/02/2018 04:04 PM 20,840 javac.exe
-
- Now we know that javac.exe is installed at: C:\Program Files\Java\jdk-11\bin