Skip to content

Installing Java

discorddioxin edited this page Dec 23, 2020 · 9 revisions

Download the Java Development Kit (JDK)

You can either use the installer, or download the files and install yourself. This Wiki will cover installing the Oracle JDK.

Using Windows Installer

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!

Manual Windows Installation

This will download the JDK, but requires some extra work to make sure your system recognizes it.

Downloading

  • 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

Installing

  • Find the path of your JDK download

  • Open up the bin folder

  • Save the path to this folder

    • Should be something like C:\Users\You\Program Files\JDK 15\bin
  • Open Environmental Variables on your computer

    • Use the shortcut Windows + R on your keyboard to open up the Run
    • Type SystemPropertiesAdvanced then click enter
    • Choose "Environmental Variables" towards the bottom
  • 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 bin folder 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!

Clone this wiki locally