Most people no longer need Java installed on a PC. Java matters only if you run an application that depends on it (for example Minecraft Java Edition or some enterprise and engineering tools) or if you develop Java software. For everyday browsing, office work and streaming, Java is optional, and removing it is safe if nothing breaks afterwards.
Browsers stopped supporting the Java plugin years ago, so websites cannot run Java in your browser any more. The sections below explain when you need Java, how to check whether you have it, and how to keep it secure.
Two different things are often confused:
So the old advice to keep Java for websites no longer applies. The remaining reason for Java on a PC is a local program that uses it.
| Situation | Need Java? |
|---|---|
| Minecraft Java Edition | Yes, though the official launcher bundles its own runtime |
| Developing Java, Kotlin or Android apps | Yes, install a JDK |
| Tools like Apache Tomcat, Jenkins, Elasticsearch or database clients | Usually yes, though some bundle a runtime |
| Legacy corporate or government software | Sometimes, check with your IT team |
| Browsing, email, Office, games not built on Java | No |
Many modern applications ship their own private Java runtime inside the installer. They keep working even if you have no system-wide Java.
Open a terminal (Command Prompt or PowerShell on Windows) and run:
If Java is installed, you see output similar to this:
If the command is not found, no Java is on your path. To see where it lives, run where java on Windows or which java on macOS and Linux. On Windows you can also open Settings, then Apps, and search for Java, JDK or OpenJDK.
For development, javac -version confirms that a full JDK (with the compiler) is installed, not only a runtime.
Uninstall it if you do not use any Java program. An old, unpatched runtime is a security risk because it is a target for attackers, and it adds little value. Removing it is reversible: if a program needs Java later, it will tell you, and you can reinstall a current version.
Before removing it, consider:
If you do need Java, install a supported long-term support (LTS) release. At the time of writing, Java 21 and Java 25 are LTS versions. Choose an OpenJDK build from a vendor such as Eclipse Temurin, Amazon Corretto, Microsoft Build of OpenJDK or Oracle. Avoid Java 8 or older unless a specific application requires it, because older versions receive fewer updates for free.
Security tips:
If you are unsure, look for these names in your installed programs. Each of them is written in Java or runs on the JVM, and each needs a runtime unless it bundles one:
.jar files.A .jar file is a Java archive. If double-clicking one does nothing, no Java runtime is associated with it. You can run it from a terminal with java -jar app.jar. Check the program's documentation for the Java version it requires, because some tools support only specific LTS releases.
No. Modern browsers do not run Java applets or plugins, so Java is not required for browsing.
Yes, if you do not use Java-based software. If a program needs it, you can reinstall the current version.
Users who only run programs need a runtime, and many vendors now ship a JDK for both purposes. Developers need the JDK, which includes the compiler (javac).
No. They are different languages. Removing Java does not affect JavaScript in your browser.
Java is important on a PC only when software you use depends on it, or when you write Java code. Browsers no longer use Java, so most users can do without it. Check with java -version, keep any needed installation on a supported LTS release, and remove it if nothing requires it.