install latest jdk on windows 10 code example Example: install jdk in windows 10 C:\WINDOWS\system32;C:\WINDOWS;"C:\Program Files\Java\jdk-10\bin"