For executing java program java program needs to be placed in bin folder .
But if you want to execute java program without placing it in bin folder of java you have to create the enviroment variable in windows..
For creating enviroment variables
Go to
My Computer --> Properties ->Advanced -> Enviroment Variables --> System Variables
In system variables you will see value and variable
Here is variable which name is Path
here append full path of java.
for append just place ; at end and then paste java path
Ex : C:\Program Files\Java\jdk\bin
Ex : java folder\bin
now close cmd .. and include your folder where java program is saved and execute java prgram.
But if you want to execute java program without placing it in bin folder of java you have to create the enviroment variable in windows..
For creating enviroment variables
Go to
My Computer --> Properties ->Advanced -> Enviroment Variables --> System Variables
In system variables you will see value and variable
Here is variable which name is Path
here append full path of java.
for append just place ; at end and then paste java path
Ex : C:\Program Files\Java\jdk\bin
Ex : java folder\bin
now close cmd .. and include your folder where java program is saved and execute java prgram.
No comments:
Post a Comment