| 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) |
Have questions or run into a weird error? Drop a comment below or check out the Eclipse Adoptium community forums. installing java jdk
javac --version If you see version numbers for both, congratulations — you're ready to write Java! Create a file called HelloWorld.java : | Vendor | Best For | |--------|-----------| |
Compile and run it:
public class HelloWorld public static void main(String[] args) System.out.println("Hello, Java!"); installing java jdk