Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Install Java in Ubuntu
#1

How to Install Java in Ubuntu

How to Install Java in Ubuntu



Download and Install Java
First, access your VPS via SSH and determine if you have Java installed.


java -version

You might get the following output:
Java version output


This means Java is not yet installed. If that’s the case, follow the steps below. Otherwise, proceed to the next step.


     
  1. Refresh the APT command to synchronize all repositories:
sudo apt-get update

     
  1. Install the newest Java JDK version:
sudo apt install default-jdk -y

     
  1. Validate the installation with the same java -version command we’ve used before. Now, the output should look like this:
Java version output after installation





Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)