-
Notifications
You must be signed in to change notification settings - Fork 0
Installing Java
You can either use the installer, or download the files and install yourself. This Wiki will cover installing the Oracle JDK.
-
You can download different version of Java here: https://www.oracle.com/java/technologies/java-se-glance.html
-
You can have multiple versions installed at the same time; managing/swapping different versions is explained in the Path section.
The installer will download the JDK, but also update the proper configurations on your computer.
-
Go to: https://www.oracle.com/java/technologies/java-se-glance.html
-
Select your desired version
-
Go to the download page for that version
-
Choose the Windows x64 Installer
- WARNING: Choosing Windows x64 Compressed Archive will require you to perform installation manually._
-
Use the default settings in the installer
- This will place the JDK in the Program Files of your computer
Once installation is complete...
-
Open the command prompt
-
Use the following command:
java -version
If it displayed a version, congratulations, you've installed Java!
This will download the JDK, but requires some extra work to make sure your system recognizes it.
-
Go to: https://www.oracle.com/java/technologies/java-se-glance.html
-
Select your desired version
-
Go to the download page for that version
-
Choose the Windows x64 Compressed Archive
-
Select where you want the JDK to be placed - Remember where you placed it!
-
Recommended to place in the Program Files/Java folder on your computer
-
If a Java folder doesn't exist in Program Files, create one
-
This part is optional
-
-
Find the path of your JDK download
-
Open up the
binfolder -
Save the path to this folder
- Should be something like
C:\Users\You\Program Files\JDK 15\bin
- Should be something like
-
Open Environmental Variables on your computer
- Use the shortcut
Windows + Ron your keyboard to open up the Run - Type SystemPropertiesAdvanced then click enter
- Choose "Environmental Variables" towards the bottom
- Use the shortcut
-
Under System Variables (bottom panel), look for the Path variable
-
Highlight the variable, click the Edit button
-
Click the New button
-
Add the path to the
binfolder you saved earlier -
Move this entry to the top
-
Click OK to close the Path window & Environmental Variables window
Test to make sure it's recognized...
-
Open the command prompt
-
Use the following command:
java -version
If it displayed a version, congratulations, you've installed Java!