The fastest way to delete Java

On Windows, open Settings, go to Apps > Apps & features, search for "Java," and click the entry that appears. Select Uninstall, then confirm. On Mac, open Applications, find Java in the Utilities folder, drag it to Trash, and empty the Trash. On Linux, use your package manager — on Ubuntu, open Terminal and type sudo apt remove default-jre, then enter your password.

Java usually installs as one or more programs with names like "Java 8," "Java 11," or "Java Runtime Environment." You may see multiple versions if you installed Java at different times. Removing one version does not affect the others, so if you only want to delete an old copy, uninstall only that one.

After you remove Java, restart your computer. Some programs that relied on Java will stop working — that is normal and expected. If a program later tells you Java is missing, you can reinstall it then.

Key Takeaways

  • Windows users should search for Java in Settings > Apps & features and click Uninstall; Mac users should drag the Java folder from Applications to Trash.
  • You may see multiple Java versions installed at once, and you can remove them one at a time without affecting others.
  • After deletion, restart your computer so the system stops looking for Java in the background.
  • Programs that depend on Java will stop working after you remove it, but you can reinstall Java later if you need it again.
  • Java is not required for most everyday tasks like browsing the web, checking email, or using Microsoft Office.

Why you might want to remove Java

Java is a programming language that some older software uses to run. Most people do not need it — web browsers no longer use Java, email programs do not require it, and Microsoft Office works without it. You might have Java installed because a program you used years ago needed it, or because it came bundled with another software installer.

The main reason to remove Java is security. Java on your computer can be a target for hackers if you do not keep it updated, and many people forget to update it. If you are not actively using a program that requires Java, deleting it closes that potential opening. You can always reinstall Java later if a program actually needs it.

How to find what version of Java you have

On Windows, open Settings, go to Apps > Apps & features, and type "Java" in the search box. You will see every Java installation on your computer listed by version number — for example, "Java 8 Update 391" or "Java 17.0.1." Write down the version numbers if you want to remember what you had.

On Mac, open Finder, click Applications, then open the Utilities folder. Look for a folder named Java or a program called Java. If nothing appears, Java is not installed on your Mac.

On Linux, open Terminal and type java -version. If Java is installed, the version number will print. If the command does not work, Java is not on your system.

Removing Java on Windows step by step

Click the Windows Start button and type "Settings" into the search box. Open the Settings app. On the left side, click Apps. Then click Apps & features.

In the search box at the top, type "Java." Any Java programs on your computer will appear in the list below. Click the one you want to remove. A button labeled Uninstall will appear to the right. Click it.

A dialog box will ask you to confirm the removal. Click Uninstall again. The program will delete itself, which usually takes less than a minute. When it finishes, close the Settings window and restart your computer.

Removing Java on Mac step by step

Open Finder by clicking the Finder icon in your dock, or press Command + Space and type "Finder." Click Applications in the sidebar on the left. Scroll down and look for a folder named Java or a program called Java Runtime Environment.

If you find the Java folder, right-click it and select Move to Trash. If you see individual Java programs instead, select each one and move it to Trash the same way. Then click the Trash icon in your dock, right-click inside it, and select Empty Trash.

After the Trash empties, restart your Mac. You can restart by clicking the Apple menu in the top left, selecting Shut Down, waiting for the computer to turn off, then pressing the power button to turn it back on.

Removing Java on Linux step by step

Open Terminal. On Ubuntu and Debian-based systems, type sudo apt remove default-jre and press Enter. On Fedora or Red Hat systems, type sudo dnf remove java-latest-openjdk instead. Your system will ask for your password — type it and press Enter.

The package manager will show you what it is about to remove and ask for confirmation. Type y and press Enter. The removal will complete in a few seconds. After it finishes, type exit to close Terminal and restart your computer.

If you installed Java manually rather than through your package manager, you will need to find the folder where you put it and delete it by hand. The most common location is /usr/local/java or your home directory. If you are not sure where Java is, type which java in Terminal — it will show you the path.

What to do if a program needs Java after you delete it

Some older programs — particularly some accounting software, specialized engineering tools, or legacy business applications — will not run without Java. If you delete Java and then try to open one of these programs, you will see an error message saying Java is missing or not installed.

If this happens, you can reinstall Java using the same method you would use to install any other software. read it from the official Java website (oracle.com/java), run the installer, and follow the prompts. The program will then work again. You do not lose anything by removing Java first — reinstalling it is just as straightforward as the original installation.

Frequently Asked Questions

Will removing Java break my web browser?

No. Modern web browsers like Chrome, Firefox, Safari, and Edge do not use Java. They stopped supporting Java years ago for security reasons. Removing Java will not affect your ability to browse the web or watch videos online.

Is Java the same as JavaScript?

No, they are completely different. JavaScript runs inside your web browser and is built into every modern browser. Java is a separate program that runs on your computer. You can remove Java without affecting JavaScript or your browser.

Do I need Java for Microsoft Office or Google Workspace?

No. Microsoft Office, Google Docs, Google Sheets, and similar programs do not require Java. You can safely remove Java without affecting these applications.

What if I see multiple Java programs in my Apps list?

You can remove them all, or remove only the old ones and keep the newest version if you think you might need it. Each Java installation is independent, so removing one does not affect the others. If you are unsure, remove the oldest versions first and keep the most recent one.

Can I remove Java partially, keeping only part of it?

No. When you uninstall Java, the entire program is removed. You cannot delete some files and keep others. If you want to keep Java but remove an old version, uninstall only that version and leave the newer one in place.