How to Install JDK and what to do after installing JDK (on Windows)

1

0. Download the latest version of JDK from

System variables setup:

1. Copy jdk path:
            a. Goto My Computer/This PC -> C: Drive -> Program Files -> Java -> jdk -> bin ->
            b. Right click on any file and copy the path (e.g. C:\Program Files\Java\jdk1.8.0_31\bin).
           
2. Edit/create New variable and paste the path:
            a. Goto "Control Panel" and click on "System" from all contro panel items
               or,
               [Goto 'My Computer'/'This Pc' and Click on 'Properties' icon (see at Left-Top corner)]
            c. Click "Advanced system setting"
            d. Select "Advanced" and click on "Environment Variables"
            e. If you see Variable "Path" exists under "System variables",
               -> Select Variable "Path" and click "Edit"
               -> In "Variable value" field paste the path you copied in step-2 (e.g. C:\Program Files\Java\jdk1.8.0_31\bin) and click OK.

               or,
               If Variable "Path" doesn't exist under "System variables",
               -> Click "New" under System variables
               -> Write word "Path" in "Variable name" filed and
               -> In "Variable value" field paste the path you copied in step-2 (e.g. C:\Program Files\Java\jdk1.8.0_31\bin) and click OK.

The described process is to set the path permanently in your machine. If you want you can set the path temporary using command prompt but every time you exit the cmd, you need to set again to use. To set, copy the path -> go to command prompt -> type set path=copied_path like below
               set path=C:\Program Files\Java\jdk1.8.0_31\bin

[N.B. Upto this System variables setup you are ready to go. Just click OK start using JAVA.
            But if you want to setup more (e.g. setting for Android development), then follow the step-3 and step-4 (User variables setup) as well.]

User variables setup:

3. Copy jdk path: (this time without "/bin")
            a. Goto My Computer/This PC -> C: Drive -> Program Files -> Java -> jdk ->
            b. Right click on any file and copy the path (e.g. C:\Program Files\Java\jdk1.8.0_31).

4. Create New variable and paste the path:
            a. Goto "Control Panel" and click on "System" from all contro panel items
               or,
               [Goto 'My Computer'/'This Pc' and Click on 'Properties' icon (see at Left-Top corner)]
            b. Click "Advanced system setting"
            c. Select "Advanced" and click on "Environment Variables"
            d. Click "New" under "User variables for -user-"
            e. Write word "JAVA_HOME" in "Variable name" field and
            f. In "Variable value" field paste the path you copied in step-3 (e.g. C:\Program Files\Java\jdk1.8.0_31) and click OK.

            g. Click OK and you are ready to go.


Post a Comment

1Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.
Post a Comment