Is Java Installed on Ubuntu?
Contents

By default, Ubuntu does not come with Java (or the Java Runtime Environment, JRE) installed. However, you may need it for some programs or games like Minecraft.

How do I know if Java is installed on Ubuntu?

To check the Java version on Linux Ubuntu/Debian/CentOS:

  1. Open a terminal window.
  2. Run the following command: java -version.
  3. The output should display the version of the Java package installed on your system. In the example below, OpenJDK version 11 is installed.

Where is Java installed in Ubuntu?

In generally, java gets installed at /usr/lib/jvm .

Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest