Wednesday, August 11, 2010

Installing and Getting Started In Java

This is a guide to download, install and setup environment to develop applications with Java Standard Edition.

Step 1
Download Java Development Kit Link
Choose Java SE edition and download installation file, once you download and install JDK you may have to set up the class path.

Step 2
Follow following steps to set up class path in Windows XP.
Click "Start" => "My Computer"(Computer in Vista)
Click "C:\" drive (click the drive your "Programs Files" are installed.
Go to "Program Files" (Mostly "C:\Program Files")
Go to Folder called "Java"
In the "Java" folder click the folder "JDK" (In my computer folder path is "C:\Program Files\Java\jdk1.6.0_16" - Where the compiler is...)
In the JDK folder right click on any file item and choose "Properties".
From the "Properties Window" click "Location" and Copy the folder path.(In my computer: "C:\Program Files\Java\jdk1.6.0_16\bin")

Now go to Desktop and Right click on the My Computer and click "Properties".
In "System Properties" click on the "Advanced" tab.
Now Click on the "Environment Variables".
In the Environment Variable window click "New" to create a new variable.
Now in the Variable Name field type "Path" without " mark.
And Variable value is where the compiler is(we copied it...remember..)... Paste it here(Mine is C:\Program Files\Java\jdk1.6.0_16\bin)
Now click ok.

To test:
Go to command line(Start Menu => Run => type "cmd" without " marks.
Now type "javac" without " marks.
If you see something like this.... Usage: javac .....
You correctly did it....

No comments:

Post a Comment