To develop an application with Java, JDK (Java SE Development Kit) is required for development and runtime environment.
If your PC is Mac, JDK might be pre-installed.
In addition to JDK, eclipse which is one of IDE(Integrated Development Environment) is frequently used. It is better to install eclipse too.
Follow the steps below to construct a Java development environment.