Likes

How to Installed java

How to Installed java

1. At fast installed java software which in available in the website ,after finished download you installed it.

2. Open command prmt and type javac. if that time showing some msg like"java c is not recognized as an internal or extranal cmd, that means you set path.

SET the PATH:-

* search the Bin folder which is include program file means where you instlled java file than right click on BIN folder and click on properties button and copy tha file location .
EXAMPLE-"C:\Program Files\Java\jdk1.7.0_02\bin;"->this is file location

*Now right click on tha My computer or This pc,than click on Properties button &  Advance System setting and click Environment Variable .
* click on NEW and enter the Variable name-PATH & Variable Value-"file location"[eg-"C:\Program Files\Java\jdk1.7.0_02\bin;"]

Example:-

*After finished the PATH setting you go to CMD Prmt and type javac ..

HOW TO RUN JAVA PROGRAM useing CMD Prmt:-
#open CMD prmt..

* type -cd/

*type-cd folder name

#type- javac filename.java
#type- java

[note:- dont miss" ;" this symbol when you set your path and dont rename variable name, its allways used PATH]

No comments: