This will bring up a list of matching items and click or press enter on the Command Prompt item as shown below: Open a Command Prompt window by going to the Windows Start menu and type in cmd in the search box. If you see a Java version printed on the screen, you've already got the runtime! You can now skip the rest of this tutorial and move on to the next tutorial: Install IntelliJ IDE. Next, to confirm that you have Java already installed, type the following command in the terminal window: java -version In the Spotlight search textbox, type in Terminal and then hit enter to open it: If you do not have a terminal icon as shown above, click on the search icon in the top right corner of the Mac menu bar in order to open the Spotlight search:
To confirm, open a terminal window by clicking on the terminal icon: If you are using a Mac, you may already have the JDK installed. You can find detailed instructions for installing an OpenJDK version here. As a reminder, with the license agreement changes for the OracleJDK, you may also consider using the open-source OpenJDK instead. In this tutorial, we will go over how to install the Java Development Kit, also known as the JDK.