Where Is My Java on Ubuntu?

Where Is My Java on Ubuntu?
Contents

Where is Java located in Ubuntu?

Setting JAVA_HOME environment variable in Ubuntu

  1. Open a terminal.
  2. Open “profile” file using following command: sudo gedit /etc/profile.
  3. Find the java path in /usr/lib/jvm. If it’s JDK 7 the java path would be something similar to /usr/lib/jvm/java-7-oracle.
  4. Insert the following lines at the end of the “profile” file.

10 июн. 2018 г.

How do I check if Java is installed on Ubuntu?

Open a Linux Terminal (command prompt). Step 2: Enter the command java -version. If Java is installed on your Ubuntu 16.04 LTS system, you will see a Java version installed in response.

Sarah Jenkins
Author

Sarah Jenkins

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.