Presentation is loading. Please wait.

Presentation is loading. Please wait.

CS115 HOW TO INSTALL THE JAVA DEVELOPMENT KIT (JDK)

Similar presentations


Presentation on theme: "CS115 HOW TO INSTALL THE JAVA DEVELOPMENT KIT (JDK)"— Presentation transcript:

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

2 Download the JDK Go to the web site:
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 wa sdownloaded 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.


Download ppt "CS115 HOW TO INSTALL THE JAVA DEVELOPMENT KIT (JDK)"

Similar presentations


Ads by Google