Showing posts with label path. Show all posts
Showing posts with label path. Show all posts

Friday, January 14, 2011

Setting up JDK (Windows)

Hello folks, now you are going to learn how to setup JDK to compile using "javac" and run the compiled class using "java".  You can download JDK from here.
Note: The arrow points where you should click.

1. Download


2. Open the downloaded file



2. Install JDK








3. Now you can compile your source code, but not comfortable. You need to change the location every time.




4. To fix that go Start > Control Panel


5. Double click on System

6. Go to Advanced tab







7. Click on the Environment Variables button


8. In the User Variables click New




9. Set 
         Variable name: Path 
         Variable value: C:\Program Files\Java\jdk1.6.0_23\bin
    
  •    Note: Variable value depends on the location you have installed. The ordinary value is like this
                       location of Java \ jdk folder with the version\bin

10. Now you can compile very easily.

That's it. Enjoy !!!