Sunday, 29 July 2012

Java - Installation & Environment setup

1) Download the latest version j2se (java 2 standard edition) from here
2) Install j2se on your system (C:\Program Files\Java\jdk1.6.0_17)

Environment Setting - this can be done in either of below 2 ways:
1) Open command prompt and write the below command:
path = C:\Program Files\Java\jdk1.6.0_17\bin
now write javac and press ENTER. It should show list of options as shown below:
(this is a temporary way of setting the path)

2) Permanent way of setting the path (using environment variable)-

Right click on My Computer --> Properties --> Advanced --> environment variables...

Locate the Path variable in the System or user variables. Press Edit button. The following dialog box would be appeared.

Write ;C:\Program Files\Java\ jdk1.6.0_17 \bin at the end of the value field.
Now there is no need to set path for each new opened command prompt.

No comments:

Post a Comment