Saturday, July 13, 2013

Installing Java for development

For your java development you may need to install JDK package for your system instead of installing jre. Once you install JDK package jre will automatically installed.

Please note down the steps for implementing java environment on your computer.

First you should download the java package from here : http://www.oracle.com/technetwork/java/javase/downloads/index.html

 * Click on "Java" 
* Then you need to click "Accept License Agreement"
* Download the 64bit Package 
(For windows 7) => jdk-7u25-windows-x64.exe 
(for Xp ) => jdk-7u25-windows-i586.exe

Double click on jdk-7u25-windows-x64.exe package and follow the installation instructions (clieck next ..next )

Finally you will receive the following out put.
Successfully installed Java SE Development Kit 7 Update 25(64-bit) : This will create "jdk as well as "jre" on your installation.
Click "Close" in the installation window. Thats it you have installed your java software on your machine.

Setting Environment path in windows 7:
Sometimes you will encountered the following error while running java on you your machine.

'javac' is not recognized as an internal or external command, operable program or batch file,

For correcting this error please do the following steps: 
Control Panel > System
Or
Right click on your MyComputer > Properties > Advanced System Settings >  Advanced > Environment Variables
Click "New" Set Variable name as " java" and Variable value as "C:\Program Files\Java\jdk1.7.0_25\bin" without any quotes click ok and now you can execute your command anywhere on your command prompt.

If you don't want to set an environment path you can change the installed "bin" directory on your command prompt and execute the java command.

That is cd command ,
For example : > cd C:\Program Files\java\
C:\Program Files\Java>cd jdk1.7.0_25
cd bin



No comments:

Post a Comment