How to Update Java JDK [A Simple Guide]
By keeping your JDK updated, you're ensuring that you're using the latest enhancements. Here's what you need to do to update Java JDK.

If you’re a software developer, a student learning programming, or even a system admin, you’re probably gonna need this soon-or maybe you’re already using it.
If you’re using an older version, it’s time to update.
The Java SDK, or JDK, is a set of tools that developers use to build, manage and run Java programs. It includes everything needed to create Java-based apps. JDK is constantly updated to fix issues, improve performance, and add new features. Every update makes sure your code runs better, is more secure, and is ready for new tech in the future.
By keeping your JDK updated, you’re ensuring that you’re using the latest enhancements. At the time of writing this blog, the latest version of Java is Java 23. Here’s what you need to do to update Java JDK.
How to Find Your Default JDK Version
To check the default JDK version on your Mac, open a Terminal window and type:
javac — version
This will show you which version is being used. If it’s JDK 23, it will look like this:
If you have already installed latest version then you need not to install it, however if you are running an older version, you can update Java JDK by download the latest verison and it will overwrite the older version. Here’s how you can install it across different operating systems.
Overview of JDK installation
From time to time, new JDK versions are released, improving performance and security. The JDK can be installed on the following platforms:
- Microsoft Windows
- Linux
- macOS
How to Update Java SDK?
What You Need
Before you install, make sure your system meets the requirements for the JDK. You can find the full list of supported systems on Oracle’s website.
What You Should Know
You can only have one version of each JDK release installed. For example, you can’t install both JDK 23 and JDK 23.0.1 at the same time. If you try, the installer will replace the old version with the new one.
Installing the JDK on Windows
There are a few ways to install the JDK on Windows. Here’s how:
- Go to the Java SE Development Kit download page
- Download the .exe file for Windows (make sure it’s the right version).
Double-click the downloaded file to start the installation. Follow the prompts and install.
The .exe installer is the simplest for most users, while the .msi installer offers more control and is great for enterprise setups. For advanced users, command-line and silent installations provide even more flexibility, allowing for automation and no user interaction.
Once installed, you will find Java-related documentation and tools in the Start menu.
The JDK is usually installed in C:/Program Files/Java/jdk-<VERSION>, like jdk-23.
Installing the JDK on MacOS
You will find different versions here.
Choose the correct JDK file for your Mac (either .dmg or .tar.gz). And click on file to start downloading.
Open the downloaded file (either in Downloads or the file browser).
Double-click the .dmg file to open it, then double-click the .pkg file to start the installation.
Follow the steps in the installation wizard. You’ll be asked to enter your admin password.
Once installed, you can delete the .dmg or .tar.gz file to save space.
Read the full article here.
About the Creator
Vikas Singh
Vikas is the Chief Technology Officer (CTO) at Brilworks, leads the company's tech innovations with extensive experience in software development. He drives the team to deliver impactful digital solutions globally.


Comments
There are no comments for this story
Be the first to respond and start the conversation.