Many programmers use Integrated Development Environments (IDEs) such as Eclipse and Netbeans for their Java programming, but one can write a Java program and compile it without bloated IDEs. Hardcore programmers sometimes prefer to use text editors that are within the terminal such as vim and emacs. A very good text editor that can be installed on both a Windows machine and on a linux-based machine (Mac, Ubuntu, etc.) is Sublime Text, which is what we will be using in this tutorial. You will need this for compiling your program.  In a Windows-based operating system, if the environment variables are not correct, you might get an error when running javac. Refer the installation article How to Install the Java Software Development Kit for more details about JDK installation to avoid this error.

TL;DR in Indonesian:
Untuk memulai menulis program dengan Java, tentukan lingkungan kerja Anda. Semua jenis program yang serupa Notepad akan memadai untuk pemrograman dengan Java. Pastikan Anda sudah memasang Java Software Development Kit.