The Java Development Kit (JDK) includes the tools needed to compile and run Java applications. Choose a JDK distribution and version that matches your project, then download it from the distribution vendor’s official site rather than an unofficial software mirror.
Choose the JDK your project requires
Java projects can depend on a specific feature or long-term-support release. Check the project’s documentation, build configuration, course requirements, or development framework before installing a version simply because it is newest.
Install the JDK
- Open the official site for the JDK distribution you intend to use.
- Select the appropriate Windows installer and processor architecture.
- Download and run the installer.
- Complete the installation using the options required by your development environment.
- Open a new terminal and run java -version and javac -version to verify the active Java tools.
If Windows cannot find Java
Your IDE may locate the JDK automatically, but command-line use can require the JDK’s binary directory to be available through PATH or the development tool to be pointed at the JDK installation directory. Avoid deleting or replacing environment variables you do not understand.
Windows 10 status
Normal Windows 10 support ended October 14, 2025. Also verify that your chosen JDK vendor still supports the Windows version you are using.

Matt Jacobs has been working as an IT consultant for small businesses since receiving his Master’s degree in 2003. While he still does some consulting work, his primary focus now is on creating technology support content for SupportYourTech.com.
His work can be found on many websites and focuses on topics such as Microsoft Office, Apple devices, Android devices, Photoshop, and more.