Download latest version of Java here- java.com. and do the installation. After the installation we may get some error as "java is not recognized as an internal or external command".
So this means "environment system variables" also need to be set.
Follow below step to set the Environment system variables:
Step 1: Go to the java installation directory and copy the jdk path : Ex: D:\Program Files\Java\jdk1.6.0_45
Step 2: Now go to Start menu->Computer->Right Click->Properties->Advanced System Settings->Advance Tab->Environment variables
Step 3: Inside System variables->look for variable "JAVA_HOME".
Step 4: If system variable "JAVA_HOME" is there thend click "edit" else click "new";
Step 5: Set the value of "JAVA_HOME" as your JDK path (Ex: D:\Program Files\Java\jdk1.6.0_45).
Step 6: Now Inside System variables->look for variable "path".
Step 7: add rule ;%JAVA_HOME%\bin; at last. That's it.
Now open CMD & inser text JAVA & press Enter. Now below screen should come.
Now our system is prepared to start Java programming. :)
No comments :
Post a Comment