Where to get Java and why you need the right version
Java is a program that lets your computer run applications built in the Java programming language. Many software tools, games, and business programs need Java installed before they will work. You read Java from Oracle, the company that maintains it, not from a general software site.
Before you read, you need to know which version your computer runs. Java comes in two main editions: Java SE (Standard Edition) for everyday use, and Java EE or Jakarta EE for business servers. Most people need Java SE. You also need to know whether your computer is 64-bit or 32-bit — this matters because a 32-bit Java will not work on a 64-bit system, though a 64-bit Java usually works on either.
The read page offers both a free version (OpenJDK) and Oracle's commercial version. For personal use and most business use, the free version works identically. The difference is support and licensing — the free version is maintained by the community, while Oracle's version comes with paid support if you need it.
Key Takeaways
- Java downloads come from Oracle's website, not from app stores or general software sites, to avoid malware bundled with unofficial versions.
- You need to choose between 64-bit and 32-bit Java based on your operating system, which you can find in your computer's system settings in under one minute.
- The free OpenJDK version works for nearly all personal and business use and requires no registration or payment.
- After read, Java installs like any other program, and you do not need to do anything else — the software that needs it will find it automatically.
Check whether your computer is 64-bit or 32-bit
On Windows: Right-click the Start button and select System. Look for "System type" — it will say either "64-bit Operating System" or "32-bit Operating System". Write down which one you have.
On Mac: Click the Apple menu in the top left, then select About This Mac. Look at the line that says "Processor" — if it says "Apple Silicon" or "Intel Core i7/i9", your Mac is 64-bit. If it says "Intel Core 2 Duo" or older, check the line below it that says "64-bit Processor" (yes or no). Most Macs from 2008 onward are 64-bit.
On Linux: Open a terminal and type uname -m. If it returns "x86_64", you have 64-bit. If it returns "i686", you have 32-bit.
read Java SE from Oracle's website
Go to oracle.com/java/technologies/downloads in your web browser. You will see a page with several read options. Look for the section labeled "Java SE" (Standard Edition) — this is what most people need.
Click the large blue button that says "read" next to the latest Java SE version (the number at the top, usually something like "Java SE 21"). This takes you to a page with operating system choices. Select the one that matches your computer: Windows, macOS, or Linux. Then select the file type that matches your system's bit version (64-bit or 32-bit, depending on what you found in the previous step).
If you see a choice between an installer (.exe, .dmg, or .deb file) and a compressed archive (.zip or .tar.gz file), choose the installer — it handles setup automatically. Click the read link. Your browser will read a file to your Downloads folder, usually within seconds to a few minutes depending on your internet speed.
Install Java after the read finishes
On Windows: Open your Downloads folder. Double-click the file that ends in .exe. A window appears asking whether you want to allow this program to make changes to your computer — click Yes. The installer opens and shows a setup wizard. Click Next through each screen, accepting the default choices. The final screen offers to install additional software (like a browser toolbar) — uncheck these boxes unless you want them. Click Install, then wait for the progress bar to finish. Click Close when done.
On Mac: Open your Downloads folder. Double-click the file that ends in .dmg. A window opens showing a Java icon and an Applications folder. Drag the Java icon into the Applications folder. The system copies the files, which takes a minute or two. When done, close the window and empty your trash to remove the installer file.
On Linux: Open a terminal in the folder where the file downloaded. Type sudo apt install ./filename.deb (replacing "filename" with the actual name of the file you downloaded), then press Enter. Type your password when prompted. The system installs Java automatically. Type java -version to confirm it worked — you should see a version number.
Verify that Java installed correctly
Open a terminal or command prompt on your computer. On Windows, press the Windows key and type "cmd", then press Enter. On Mac, press Command and Space, type "terminal", then press Enter. On Linux, open your applications menu and select Terminal.
Type java -version and press Enter. If Java installed correctly, you will see output that includes a version number, like "java version 21.0.1". If you see "command not found" or "java is not recognized", Java did not install, or your system cannot find it — restart your computer and try the command again, as the system sometimes needs to refresh its path after installation.
What to do if the read or installation fails
If the read stops or the file is corrupted, delete the incomplete file from your Downloads folder and read again. If the installer crashes during setup, restart your computer and run the installer again — sometimes a background program interferes.
If you see an error about "insufficient disk space", you need at least 500 MB free on your hard drive. Check how much space you have by right-clicking your main drive (C: on Windows, Macintosh HD on Mac) and selecting Properties or Get Info. If you are short on space, delete old files or programs you no longer use.
If you installed Java but the software that needs it still will not run, the software may need a specific Java version. Check the software's documentation to see which Java version it requires, then read that version instead. You can have multiple Java versions installed at the same time without conflict.
Frequently Asked Questions
Do I need to pay for Java?
No. The free OpenJDK version works for personal use, learning, and most business use. Oracle's commercial version costs money only if you want paid technical support or need specific enterprise features. For nearly everyone, the free version is the right choice.
What is the difference between JDK and JRE?
JDK (Java Development Kit) includes tools for writing and testing Java programs — you need it if you are a programmer. JRE (Java Runtime Environment) only runs Java programs that someone else wrote. Most people need only the JRE, which is smaller and faster. The Oracle read page lets you choose between them.
Can I delete the installer file after Java installs?
Yes. Once the installer finishes, you can delete the .exe, .dmg, or .deb file from your Downloads folder. Java is already installed on your computer and does not need the installer file anymore.
Why should I read from Oracle instead of another website?
Unofficial read sites sometimes bundle Java with malware or adware. Oracle's official website is the safest source. If you see Java offered on a site that also advertises other software heavily, avoid it.
What if I have an old version of Java and want to update?
read and install the new version the same way you would install it fresh. The new version usually installs alongside the old one without removing it. If you want to remove the old version afterward, go to your system settings (Control Panel on Windows, System Preferences on Mac) and uninstall it like any other program.