This page topics close

Before compiling and executing java program we have to install java on our system.
To install java, we have to download jdk(Java Software) software from internet.
Download the software from internet based on your operating system.
To download the software open the following web site.
Download Java SE 8(1.8)
The software is different for 32-bit operating and 64-bit operating system.
Refer in below pic

For 32-bit operating system please click on 
Windows x86:- 32- bit operating system 

For 64-bit operating system please click on 
Windows x64:- 64-bit operating system
Now download it.......

  • Step1) Check Now,

    After installing the software the, java folder is available in the following location.

    Local Disk (C): ------>program Files or program Files(x86)-------->java---->jdk
    (java development kit), jre (java runtime environment).
    

    In order to check whether the java is installed in your system or not? -Go to the command prompt. -To open the command prompt
    Start ---------->run------>type: cmd----->ok
    
    
    Command prompt is opened.

    • 1) Press (WindowKey+R) to open run

      -1315701883.jpg
    • 2) Type cmd and press ok.

      2092804253.jpg
    • 3) A command prompt is opened.

      -81456293.jpg
  • Step 2)

    Now, In the command prompt type : javac If you see,

    Step 2)
    • 'javac' is not recognized is an internal or external command, operable program or batch file.

    • Whenever we are getting above information at that moment the java is installed but the java is not working properly because path is not set.

  • Note:-

    Whenever we type javac command on the command prompt

    • Operating system will pickup javac command search it in the internal operating system calls. The javac not available in the internal command list .

    • Then operating system goes to environment variables and check is there any path is set or not. Up to now we have not set any path. So operating system does not know anything about javac command because of this reason we are getting error message.

Important Point

In order to use java we have to set the path.

What next?

The next topic is Setting java path

Share this page