HOW TO SET ENVIRONMENT & RUN JAVA PROGRAM ?

HOW TO SET ENVIRONMENT &  RUN JAVA PROGRAM ?

AAJ hum java program run karna sikhenge ....(AND ENVIRONMENT SET KARNA )

isse pahle humne java ke bare me or dekh chuke yaha yadi apne mera java ka first post nai dekha hoga to yaha per click karke read kar sakte ho .... isse kya hai na ap ko java ke bare me achhe se pata chal jayega so first open my first post JAVA .......

JAVA software programming language ? click here


To chaliye hum ab java program banana sikhte hai .....

REQUIREMENT -  JAVA SOFTWARE

hume java program ke liye software ki need padta hai to sabse pahle hum java ka koi ak software download karenge

yaha per click karke ap java ka software download kar sakte hai.....

CLICK HERE FOR DOWNLOAD JAVA SOFTWARE

Download hone ke bad hum java ko install karenge ..

install karne ke bad hume environment set karna padta hai ..... Run karne ke liye ...yadi hum environment set nai karenge to hume java program ko run uske current location per karna hoga jaise hum jaha per install kiye hai wahi ha path (address ) dal kar compile and run karna padega ...

and yadi hum chahte hai ki kahi per v save karke Run karaye to uske liye hume sabse pahle install karne ke pad path and classpath set karna hoga .......to chaliye set karte hai...


HOW to set environment in java ..

step 1 )

               Sabse pahle hum computer ki control panel per jaynenge .. jaise ki ap image 1 per dekh sakte hai niche ...

image 1.   
                          


 Control Panel  me jane ke bad System and Security  option per click karte hai ....
jaise hum image 2 per dekh sakte hai .....

image 2.
             




uske bad new page open hoga system option me click karne ke bad jaise ap image 3 per dekh sakte hai ...

image 3



ab yaha per hume Advance system setting per click karna hoga ....uske bad new page open hoga ..

jaise ki hum image 4 per dekh sakte hai..

image 4
                   



Uske bad humare samne ak new page open hoga jisme hum path and class path set karenge ..

jaise ki ap niche image 5 per dekh sakte hai ...

image 5
                 



jaise hi hum edit per click karenge humare samne new page open hoga ...

jaise hum niche image 6 se classpath ko copy karenge and and classpath ko paste karenge environment me jaiki hum image 7  per dekh sakte hai ......

image 6(copy classpath)

and image 7(paste classpath)


                 

uske bat jaise ki ap dekh sakte hai ki ok and cancel ka option diya huwa h to hum ok per click karenge...

uske bad hum PATH set karenge yad rahe classpath me lib file ke address ko paste karte hai ans PATH me bin file ke address ko paste karte hai ..

to chaliye ab path ke per click kar edit karenge ...

 image 8 per copy kiya gaya h PATH ko and image 9 per paste kiya hai ...ap niche dekh sakte hai...

image 8(copy PATH address)
 


and image 9(paste PATH address )






                   
is type se hum java me environment set kar sakte hai ....

environment set hone ke bad hum java ko kahi per bhi run kara sakte hai means koi bhi file per save kar ke run kiya ja sakta hai ....


CHALIYE AB RUN KARTE HAI JAVA KO..

uske liye sabse pahle hum java ki ak program ki coding karenge ..

mai jaya per coding kar raha hu...

------------------------------------------------------------
class table
{ public static void main(String ar[])
  {
     int i,n=4,s;
    for(i=1;i<=10;i++)
    { 
     System.out.println(i*n);
     }
   }
}

-------------------------------------------------------------------------------
yaha per humne simple sa coding kiya hai java ...
Table print karane ke liye codingkiya hai ...
------------------------------------------------------------------------------

ab hum isko RUN karayenge ..
uske liye hum window+R press kar command prompt ke jayenge 

jaise ki ap niche image per dekh sakte hai..

image .. (command prompt)




yaha per hum pahle location per gaye jaha per saave kiye hai program ko ..

m: type kar enter kiye fir
m:\> cd sp     ke andar gaye fir

m:\ cd sp>javac table.java     type kar enter kar compile kiye ...fir

m:\cd sp>java table            type kar enter kar run kiye ....


jaise ki uper hum image per dekh sakte hai 




is type se hum jan chuke hai ki java program per environment kaise set karte hai 

and program ko kaise run kara sakte hai .....

yadi fir bhi koi doubt ho to ap hume comment kar puchh sakte hai .....


thanks 









































































































































Post a Comment

0 Comments