The Java Software Development Kit (Java SDK or JDK) is an application created by Sun Microsystems(Now it is part of Oracle ) to create and modify Java programs.
To install Java on your system you have to follow following steps.:-
Download the latest version of the Java JDK from website http://java.sun.com/javase/downloads
/index.jsp
Double-click on the install file and it should open an installer
Click next
Then read and accept the license.
On the next screen you will encounter some options. leave all defaults and click next >>next.
Installation will started .It will take some time.
When it finished the to check .
Open Command Prompts
Type
cd C:\Program Files\Java\jdk1.5.0_10\bin
Like
C:\Users\rajesh>cd
C:\Program Files\Java\jdk1.5.0_10\bin
Type javac and press enter
C:\Program Files\Java\jdk1.5.0_10\bin>javac
Then Following will display .
Usage: javac
where possible options include:
-g Generate all debugging info
-g: none Generate no debugging info -g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing -deprecation Output source locations where deprecated APIs are u
sed
- classpath Specify where to find user class files
-cp Specify where to find user class files
-sourcepath Specify where to find input source files
-bootclasspath Override location of bootstrap class files
-extdirs Override location of installed extensions
-endorseddirs Override location of endorsed standards path
-d Specify where to place generated class files
-encoding Specify character encoding used by source files
-source Provide source compatibility with specified release
-target Generate class files for specific VM version
-version version information
-help Print a synopsis of standard options
-X Print a synopsis of nonstandard options
-J Pass directly to the runtime system
This mean you have installed successfully now you have set path and classpath which we will discus next