Java is usually installed but turned off in your browser

Java runs on your computer in two places: as a standalone program (which you control directly) and as a plugin inside your web browser (which you need to turn on separately). Most computers have Java installed already, but the browser version is disabled by default for security reasons. You enable it through your browser settings, not through a separate installer.

The steps differ depending on which browser you use. Chrome and Edge no longer support Java plugins at all — if a website requires Java in those browsers, it will not work. Firefox still allows Java, and Internet Explorer (if you still have it) can run Java as well. Before you enable Java, check whether the website you need actually requires it, because many sites that once used Java have switched to other technologies.

Key Takeaways

  • Java on your computer and Java in your browser are separate — you may have Java installed but still need to enable it in Firefox or Internet Explorer.
  • Chrome and Edge do not support Java plugins, so Java websites will not work in those browsers no matter what you do.
  • Enabling Java in your browser creates a security risk, so only turn it on if you actually need it for a specific website.
  • If a website says it requires Java, try it first in your current browser — the site may have been updated to work without Java.

Check whether Java is already installed on your computer

Open a command prompt or terminal window and type java -version, then press Enter. If Java is installed, you will see a version number like "java version 21.0.1" or similar. If you see "command not found" or "java is not recognized", Java is not installed and you will need to read it from Oracle's website before you can enable it in your browser.

If Java is installed but you want to check the exact version or update it, go to java.com and click "Verify Java". The page will tell you what version you have and whether a newer one is available. You do not need the newest version for most websites — anything from the last few years usually works — but keeping Java reasonably current reduces security risks.

Enable Java in Firefox

Open Firefox and type about:preferences#privacy in the address bar, then press Enter. Scroll down to the "Permissions" section. Look for "Java" in the list. If it appears with a dropdown menu, click the dropdown and select "Allow". If Java does not appear in the list at all, Java is not installed on your computer.

After you enable Java, reload the website that needs it. The page may ask for permission to run Java the first time — click "Allow" or "Run" when prompted. If the website still does not work, close Firefox completely and open it again, then try the website once more. Sometimes Java needs Firefox to restart before it activates.

If you want to disable Java again after you finish, go back to the same settings page and set Java to "Block" instead of "Allow". This is the safer choice if you only needed Java for one specific task.

Enable Java in Internet Explorer (Windows only)

Open Internet Explorer and click the gear icon in the top right corner, then select "Internet Options". Click the "Security" tab at the top. Click the "Custom Level" button. Scroll down until you find "Java Permissions" or "Run Java Applets". Change the setting from "Disable" to "Enable" or "Prompt", then click "OK" and "OK" again.

Internet Explorer will ask for permission each time a website tries to run Java. Click "Yes" or "Allow" when prompted. If you want Java to run without asking every time, set it to "Enable" instead of "Prompt" — but "Prompt" is safer because it lets you see which websites are trying to use Java.

Why Chrome and Edge cannot run Java

Google removed Java plugin support from Chrome in 2015, and Microsoft removed it from Edge as well. Both browsers decided that Java plugins created too many security problems and that most websites had moved to safer alternatives like JavaScript (which is different from Java, despite the similar name). If a website requires Java and you are using Chrome or Edge, you have two options: switch to Firefox or Internet Explorer, or contact the website to ask if they have updated the page to work without Java.

Many websites that once required Java now use HTML5, Flash alternatives, or other technologies that work in all modern browsers. Before you go through the trouble of switching browsers, try asking the website's support team whether Java is still necessary. If the site is old or rarely updated, Java might be the only way — but if it is a major bank, government site, or company, they have likely modernized it.

Security considerations before you enable Java

Java plugins have a history of security vulnerabilities, which is why browsers disabled them by default. Enabling Java means you are accepting a small increase in risk in exchange for the ability to use a specific website. Only enable Java for websites you trust, and disable it again when you are done.

Keep Java updated by checking java.com periodically or by allowing automatic updates when Java prompts you. Outdated Java is more dangerous than current Java. If you find yourself never using Java, you can uninstall it entirely from your computer through the Control Panel (Windows) or System Preferences (Mac) — this removes the security risk completely and frees up a small amount of disk space.

What to do if Java still does not work after you enable it

First, make sure you are using Firefox or Internet Explorer, not Chrome or Edge. Second, close and reopen your browser completely — do not just reload the page. Third, clear your browser cache by pressing Ctrl+Shift+Delete (Windows) or Command+Shift+Delete (Mac), select "All time" or "Everything", and click "Clear". Then try the website again.

If Java still does not work, the website may require a specific version of Java that you do not have, or the website itself may be broken. Try contacting the website's support team and tell them you have Java enabled but the page is not working. They can tell you whether Java is actually required or whether the site has been updated to use something else.

Frequently Asked Questions

Is Java the same as JavaScript?

No. JavaScript is a programming language that runs in all web browsers and powers most interactive websites. Java is a separate language that runs as a plugin and is much less common on the web now. Many websites use JavaScript but not Java. The similar names cause confusion, but they are completely different technologies.

Can I enable Java just for one website?

In Firefox, you can set Java to "Prompt" instead of "Allow", which means Firefox will ask you each time a website tries to use Java. This way you can say yes to one website and no to another. In Internet Explorer, the setting applies to all websites, so you cannot restrict it to one site.

Will enabling Java slow down my computer?

Java itself uses very little resources when it is not running. It only uses memory and processing power when a website actually tries to use it. Enabling Java in your browser settings will not noticeably slow down your computer or browsing speed.

What if I uninstall Java by accident?

Go to java.com, click "read", and follow the installer. The read is free and takes a few minutes. After you reinstall Java, you will need to enable it in your browser again using the steps above.

Do I need Java to use Microsoft Office or Google Docs?

No. Office and Google Docs work in all modern browsers without Java. If a website tells you that you need Java to use it, that is usually a sign the website is very old or has not been updated in many years.