Technology Version
|
Sr. No |
Technology/Environment |
Version |
|
1 |
JDK |
6.0.31 |
|
2 |
Windows |
7 |
Steps to follow
Java Installation Steps
Go to http://www.oracle.com/technetwork/java/javase/downloads/index.html and press download button to download the Java SE 6 Update 39.
Accept License agreement and click on Windows x64 executable.
Download Windows-64 bit version.
Run the executable
Press Next
Observe that JDK will be installed in C:\Program Files\Java\jdk1.6.0_39\
Press Next
Press Next
Press Finish. You will be transferred to oracle.com for creating a account. You can create if you want but it’s not necessary.
Verification
Verify that JDK is installed.
JDK installation is complete.
Java Verification Steps
Verify that Java is installed in your system. Go to start and type cmd.exe and press enter.
Change directory to C:\Program Files\Java\jdk1.6.0_39\bin by using following commands.
cd C:\Program Files\Java\jdk1.6.0_39\bin
Set JAVA_HOME and PATH variables
For Java Development, Most of the tools require JAVA_HOME and PATH variables.
What is PATH variable? The PATH environment variable on your computer designates which directories the computer searches when looking for applications, such as the applications that enable you to compile and run your Java applications (called javac.exe and java.exe on windows).
For Windows 7, follow next steps to set path variable:-
Go to Start-> Right click on Computer icon-> Select Properties
Select Advanced System Settings menu from the left.
Click on advanced tab
Press Environment Variables
Click on Environment Variables. Add JAVA_HOME variable to C:\Program Files\Java\jdk1.6.0_39
Update path variable so that windows can find javac/javaw.exe
Now, Search for path variable under System variables.
Click Edit.
Go to the last character, add semicolon and Append %JAVA_HOME%\bin to PATH variable.
Press Ok, Ok and Ok.
Updating path variable for %JAVA_HOME%\bin helps operating system to find executables like java.exe, javac.exe from any directory. For example, if you type javac –version from any directory, you would be able to see the version.
Go to command line from start-> cmd.exe
Type javac –version
c:\>javac -version
This shows that Operating system is able to find out javac using path variable.
Revision History
|
Sr. No |
Date |
Change description |
| 1 | Jan 13 | Original version |
Leave a comment