How do I download JDK on Ubuntu?

How do I download JDK on Ubuntu?
Answer
Installing Open JDK 8 on Debian or Ubuntu Systems
  1. Check which version of the JDK your system is using: java -version. …
  2. Update the repositories: sudo apt-get update.
  3. Install OpenJDK: sudo apt-get install openjdk-8-jdk. …
  4. Verify the version of the JDK: …
  5. If the correct version of Java is not being used, use the alternatives command to switch it: …
  6. Verify the version of the JDK:
8 янв. 2021 г.
 

Tìm kiếm

Back
Top