Have questions or run into a weird error? Drop a comment below or check out the Eclipse Adoptium community forums.
# Update your package list sudo apt update sudo apt install default-jdk Verify installation java --version installing java jdk
Compile and run it:
java --version You should see something like: Have questions or run into a weird error
| Vendor | Best For | |--------|-----------| | | Enterprise, long-term support (LTS) | | OpenJDK | Open-source purists | | Amazon Corretto | AWS users, free LTS | | Eclipse Adoptium (Eclipse Temurin) | General development (my recommendation) | installing java jdk