If you are going to be doing development on a Windows computer, these are the basic steps you need to complete to ease you along:
- Download the JDK needed
- Install the JDK
- Set the JAVA_HOME environment variable
- Add the JDK's /bin folder to the PATH environment variable
Download the JDK
On this page there is a lot of good information that can help you determine what to do next. Sometimes all of that info is too much info. In this case, we are going to install JDK 8.
- Navigate to Oracle's Java Downloads page
- Click the Java icon for Java Platform (JDK) 8uXXX
- Check the radio button to 'Accept the License Agreement' in the middle of the page
- Click on the JDK you want to download (Windows x86 or x64), in this case, jdk-8u131-windows-x64.exe
Install the JDK
- Once the .exe installer is downloaded, run it
- Unless you have a compelling reason, it is easiest to stick with the default install path
- Select the default selections, unless you know why you need to make changes
Set the JAVA_HOME Environment Variable
- Get the path to the JDK root folder

- Navigate to the environment variables. In Windows 10, right-click Start icon and select System and then choose Advanced System Settings
~or~
left-click Start and start typing 'Environment' until Edit the System Environment Variables appears as an option. Select that option
- Create and set the environment variable.
Variable Name: JAVA_HOME
Variable Value: C:\Program Files\Java\jdk1.8.0_131
- Click OK two times to save the changes
Add JDK /bin folder to the PATH
- To add the /bin folder to the PATH variable, select it from the same dialogue box from where you created the JAVA_HOME variable
- Select the PATH variable and click Edit...
- Add the same path used in the JAVA_HOME variable, but add the subfolder /bin to the end of that path. Your new value should be something like this:
C:\Program Files\Java\jdk1.8.0_131\bin

No comments:
Post a Comment