On this page:
Hello, Java
1 Java Development Kit
2 Intelli  J
6.12

Lab 4: Same Story, More Syntax

Hello, Java

You’ll work in this lab with your assigned partner. Help each other get up and running with IntelliJ and Java.

Our goal for today’s lab is to begin compiling and running Java programs using IntelliJ.

1 Java Development Kit

We need to install the Java Development Kit (JDK) to develop Java programs. This is platform-dependent, so the process will be slightly different for each of your machines. Help your partner if you already have the JDK installed.

First, download and install the proper JDK for your platform.

2 IntelliJ

We’ll use IntelliJ as our editor for Java programs. Download and install the proper IntelliJ Community Edition for your platform (Windows/Apple/Linux).

Once you’ve installed IntelliJ, launch it and try to figure out how to make a new project with a single class named "Hello". Then add this code, compile, and run first Java program. Let us know if you run into any issues.

public class Hello {

  public static void main(String[] args) {

      System.out.println("Hello, world.");

  }

}