Вы находитесь на странице: 1из 16

Java Installation Guide

Course: Object Oriented Programming (CS F213)

In case of any difficulty, please revert to


Gaddam Rahul Shivroop
<f20150658@goa.bits-pilani.ac.in>
Installation in Windows
• First download the JDK 11 from the
http://www.oracle.com/technetwork/java/javase/downloads/index.ht
ml
• Next choose your Operating System in your laptop (Windows for example).
• You probably have to click on the last choice (bottom link- windows 64)
• if you have windows or MAC environments
» Go to the downloads directory and run the installation
file
» Continue with installation and continue with all the steps which
would take a few minutes
Setting the Path variable
Firstly,
» Go to the Java Installation folder which is usually
C:\Program Files\Java.
» Then go to Jdk-11-> bin , then copy the path which
should look like this.
» C:\Program Files\Java\jdk-11\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
» Choose Advanced System Settings link
» Click on Advanced System Settings
» In System Properties select Environment Variables tab
» 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).
» Now, add the Java JDK location by clicking on New and adding the
path. Then click on OK and close the windows.
» Now the JDK is installed
To check if Java is installed properly
» Go to Command Prompt (Run as administrator)
» Type java -version to display the java version
Then type javac.
» 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

Вам также может понравиться