Set Up the JDK
You need the Java Development Kit (JDK) from Oracle to compile Java apps on your machine. First check to see if you already have the JDK. Open Terminal or Command Prompt and typejava -version. If you have the JDK, the response should be something like this:

