

In the next dialog, specify the JDK vendor, version, change the installation path if required, and click Download.įrom the main menu, select File | Project Structure | Project Settings | Modules. Only for JDKs: If you don't have the necessary JDK on your computer, select Add SDK | Download JDK. If the SDK is installed on your computer, but not defined in the IDE, select Add SDK | 'SDK name', and specify the path to the SDK home directory. If the necessary SDK is already defined in IntelliJ IDEA, select it from the SDK list. In the next dialog, specify the JDK vendor, version, change the installation path if required, and click Download.įrom the main menu, select File | Project Structure | Project Settings | Project. Only for JDKs: if you don't have the necessary JDK on your computer, select Download JDK. To add an SDK, click, select the necessary SDK and specify its home directory in the dialog that opens. Configure global SDKsįrom the main menu, select File | Project Structure | Platform Settings | SDKs. This folder is called an SDK home directory.

To execute the program, use the java command:Ĭ:\>"\Program Files\java\jdk1.8.To define an SDK means to let IntelliJ IDEA know in which folder on your computer the necessary SDK version is installed. Then compile this program in a command window with the javac command:Ĭ:\>"\Program Files\java\jdk1.8.0\bin\javac" Hello.javaģ. Use Notepad to enter the following Java program into a file called Hello.java:Ģ. Once the JDK is installed, you can try to use it to compile and execute a simple Java program:ġ. Java HotSpot(TM) Client VM (build 25.0-b70, mixed mode, sharing) Java(TM) SE Runtime Environment (build 1.8.0-b132) If you are getting the following output, your installation was ok:Ĭ:\>"\Program Files\java\jdk1.8.0\bin\java" -version To test the installation, open a command window to try the java command. The installation wizard will guide you to finish the installation.Double-click on jdk-8-windows-i586.exe to start the installation wizard.Save jdk-8-windows-i586.exe to a temporary directory.Click the hyper link of "jdk-8-windows-i586.exe", next to "Windows x86 - 151.68 MB".Locate the "Java SE Development Kit 8" section.You will see a new page with a list of different download files of JDK 8.

Click the download button next to "Java Platform (JDK) 8".Open the Java SE Download page with this URL.A simple Java program was entered, compiled, and executed with the new JDK installation.ĭownloading and installing JDK 1.8.0 (Java SE 1.8) on a Windows system is easy. This section provides a tutorial example on how to download and install JDK 1.8.0 (Java SE 8), which contains the HotSpot 1.8 JVM, on a Windows XP system. ∟Downloading and Installing JDK 1.8.0 on Windows JVM Tutorials - Herong's Tutorial Examples
