In this tutorial, I will be showing you how you can install Java JDK on the main operating systems: Windows 7, OS X and Ubuntu. You can use the links below to navigate to the tutorial for you.
Installing the Java JDK on Windows 7
To install the Java JDK on Windows, you will need to open up an internet browser and navigate over to here. When you get there, you will need to accept the licence agreements and then click the download button next to where it says your version of windows.
Download.png 193.77KB 0 downloads
Once you have downloaded the JDK, you can run the installer. The installer is like all others, just keep spamming next untill its installed!
Installer.png 139.09KB 0 downloads
Now that it has installed, you will need to go to the start menu and open CMD. You can see this been done with the images below.
OpenCMD.png 51.79KB 0 downloads
javacFail.png 48.45KB 0 downloads
When you have CMD open, you should type in javac (as shown in the image above). If this errors, like above then you will need to progress on to the next step. If not, your done! You will now need to find the installation directory for where java is installed. It would have asked you for this during the install. My install directory is C:\Program Files\Java\jdk1.8.0_20\bin. If you are unsure, check the video above for further information. Once you have this, copy the address.
InstallDirectory.png 130.9KB 0 downloads
You will now need to right click on the My Computer link in the Windows Explorer (on the right) and click properties. This should open a new window. In the new window, on the right, click the Advanced System Settings. Again, this should open up a new window. Now click the Environment Variables to open up our next window.
Properties.png 121.14KB 0 downloads
SystemProperties_EnvironmentalVariables.png 190.4KB 0 downloads
Finally, in the System Variables section, find where it says path and then click the edit button. In this final window, you will need to go right to the begining of the text and paste your path copied earlier followed by a semi-colon;
Path.png 71.02KB 0 downloads
Now you have done this, click ok to save the settings and then reboot your machine. You can then open up CMD again and type in javac. It should look something like this now. If you have any issues, watch the video and then comment below if you are still stuck.
javac.png 122.29KB 0 downloads
Installing the Java JDK on OS X
To install the Java JDK on OS X, you will need to open up an internet browser and navigate over to here. When you get there, you will need to accept the licence agreements and then click the download button next to where it says Mac OS X x64.
DownloadJava.png 144.86KB 0 downloads
When this has downloaded, you will need to open the .dmg file. This should then open a window like this. All you have to do is double click the image. This should then start the install. Just follow the instructions and then your done.
OpenInstaller.png 42.44KB 0 downloads
You can check to make sure it has installed correctly by opening a terminal window
OpenTerminal.png 56.01KB 0 downloads
Once you have opened the terminal, simply type
and press enter. You should see something like the following. Dont worry, this has what is expected. You can now go to Lesson 1
Javac.png 229.86KB 0 downloads
Installing the Java JDK on Ubuntu
In this tutorial, I will be showing you can install the Java JDK on Ubuntu via the terminal. This should work on all versions of Ubuntu and any Debian based operating system. The first thing you will need to do is open the Terminal and switch to the root user. This will just save time and mean you dont have to keep sudo'ing.
OpenTerminal.png 292.45KB 0 downloads
Once you have the terminal open, type in the command below and then your password.
You should now be able to run the following commands without the need to sudo. Next, you must make sure everything is up to date. you can do so by typing
apt-get update; apt-get upgrade
update.png 261.12KB 0 downloads
Once everything has updated, you can now install the JDK.
apt-get install default-jdk
installJDK.png 233.7KB 0 downloads
You can test to make sure the JDK has been installed by typing in javac in to the terminal.
javac.png 517.94KB 0 downloads