Skip Top Navigation Bar

Your First Steps in Java

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. Your first Java code

    Set up Java, write your first program, and run it in an editor or from the command line.

  2. Using IDEs

    Use an IDE to write and run your first Java application.

  3. Launching Simple Source-Code Programs

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

  4. JShell - The Java Shell Tool

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