Wednesday 24 July 2013

how to set java path in windows7 , windows xp

// siddhu vydyabhushana // 5 comments
What is java?
java is a programming language and platform.
platform is it may be hardware or software where our program executes.java has its own environment and api,it is called platform.

Why we set path?
After installation of jdk,jre in your system only you have to execute or compile programs.
The programs don't know the root (path) where code converts to byte code.
we can set path in two ways:

1.Every time we can set path using set classpath command
2.Set path into environment variables

Method 1:
it is a one type of method not using in these days, 


Drawback: Everytime when compiling program, executing program we should set path in command prompt

Method 2 :

this is most frequently used and no modifications are needed no need to use set classpath every time in command prompt.

just follow below steps to set classpath

1.Got my computer
2.open your installation drive(it my be c:\ or d:\)
3.open program files
4.open java folder
5.double click on jdk folder
6.at next open bin folder

copy the path as 


copy it...

Step-1

1.right click on my computer -> properties 
2.click on Advanced System Settings

Step-2:

1. click on Environment Variables

Step-3:
keep your eyes on System Variables
observe carefully if the system variables contain path variable no need to create
if it doesn't contain create it. paste the url in the Value of the system variables

now apply all ....

I hope that you enjoyed this tutorial and like my page instead of paying money and share my blog thanq







5 comments: