Skip Top Navigation Bar

Your first Java code

This section shows you how you can set up Java on your machine, write your first program, and run it in an editor or from the command line.

  1. Getting Started with Java

    Downloading and setting up the JDK, writing your first Java class, and creating your first Java application.

  2. Launching Simple Source-Code Programs

    Launching simple source-code Java programs with the Java launcher.

  3. JShell - The Java Shell Tool

    jshell interactively evaluates declarations, statements, and expressions of the Java programming language in a read-eval-print loop (REPL).