Search

Sanjula Lakpahana. Powered by Blogger.

Popular Posts

Categories

Related Posts Plugin for WordPress, Blogger...

Sunday, February 24, 2013

Java - Setup Your Computer for Java


Hey friends I  think you have read the post about The introduction to Java.Now we are going to start.Before coding we have to setup your computer for Java....Read 


Downloading Java (JDK)

First we have to download Java Development Kit (JDK) without it we cannot do anything.For 
Downloading Go to

  http://www.oracle.com/technetwork/java/javase/downloads/index.html
click Java Platform in this page(see above image red rectangle)
Then accept the license agreement after that download jdk relevant to your Operating System
Install the Java JDK you downloaded.If you don't know how to install see here the video.This video is not mine but really good video.

Configuring Paths


Before starting we have to set paths for compiling.

1.First  go to System Properties(right click My computer and click properties)
2.Go to advanced tab
3.Click Environmental Variable in bottom of Advanced tab
4. find PATH variable in  System Variables. click it once and click edit in below
5.Go to the end of the text in variable value put a comma(,) and type
C:\Program Files\Java\jdk1.6.0\bin this will be change according to your computer.How ever it must set the path to jdk bin
Follow following Pics  


Testing the Path  

For testing the Path of java,
1. Go to Command prompt
2.type javac and press enter. If it showed like follows your are ok. If not install again and set paths
3.type java and press enter If it showed like follows your are ok. If not install again and set paths

  If you succeed all above steps That says YOU ARE READY TO JAVA PROGRAMMING.
Bye

No comments:

Post a Comment