1 / 5

How to Install the Java Development Kit (JDK)

Learn how to download and install the Java Development Kit (JDK) on your computer. Follow step-by-step instructions to set the PATH variable for proper functionality.

ryman
Download Presentation

How to Install the Java Development Kit (JDK)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CS115 HOW TO INSTALL THE JAVA DEVELOPMENT KIT (JDK) By George Koutsogiannakis

  2. Download the JDK • Go to the web site: http://www.oracle.com/technetwork/java/javase/downloads/index.html or follow the links provide in the course’s web site. • Click on the first icon JAVA PLATFORM JDK 7 • Accept the agreement for the download by clicking at the top of the table the accept agreement button. • Next choose your Operating System in your laptop (Windows for example). You probably want to click on the last choice (bottom link- windows 64) if you have windows or MAC environments. Click on that link. • Save the downloaded file in a known folder in your laptop. • After the download is complete, go to the folder where the file wasdownloaded and click on it. • The installation starts and it would take few minutes. YOU ARE NOT DONE AFTER THE INSTALLATION IS COMPLETE.

  3. Set the PATH Variable • Using windows explorer (for window systems), go to Program Files-> Java->Jdk1.7->bin. From the top of your windows explorer window copy the path to the bin folder by right clicking the mouse and choosing copy. The path should look something almost like this (it depends on your system) C:\Program Files\Java\jdk1.7.0\bin • Next you need to set an operating system variable named PATH so that the command to start the java compiler or interpreter can be recognized from anywhere in your directory structure (any folder). • Open Control Panel and choose:System • Click on the Adavnced System Settings link. • In the pop up window click on environment variables and choose Advanced. • At the top table you will see a variable named PATH.

  4. Set the PATH Variable • Click the Edit button. • In the edit text field place a semicolon at the end (;) of any existing paths (if there is not one there already). • PASTE the path you copied from your laptop after the semicolon. • Press O.K. and close all windows opened. • Restart your computer. • When the computer is up and running again: Open a DOS window. Type the command to start the compiler without giving it a program name i.e. >javac

  5. Set the PATH Variable • If the installation and the PATH setting were done correctly the compiler will give you an error message with an indication of the proper commands to use. • If the PATH was done incorrectly then a message will appear like: Command not recognized • In that case you will have to repeat the entire process of setting the PATH. • SEE ME IF YOU HAVE ANY QUESTIONS OR IF YOU FEEL MORE COMFORTABLE TO DO IT IN MY PRESENCE.

More Related