You are on page 1of 1

3.

In the download box, first you must accept the Oracle Binary Code License Agr eement for Java SE to download this software. First click the link Oracle Binary Code License Agreement for Java SE and then click Accept License Agreement. Now you will see a message "Thank you for accepting the Oracle Binary Code License Agreement for Java SE; you may now download this software". 4. Now click on the download link for your operating system (eg. -7u25-windows-i 586.exe). 5. Once downloaded, double click the executable ( assuming you are in windows) t o start installation. 6. Keep clicking next to install the JDK with default options. If you want to ch ange the installation directory, you can do it within this installation process. 7. Finally once the installation is done, exit the installed using close button. 8. Once installed, open command prompt (type cmd in run and press enter). 9. Try executing javac and java to see if they are on the path. If you get get " Command not found" error message then the command is not on the path and you nee d to add them to path either through command prompt or through Environment varia ble settings page. 10. To set path, find the path of your javac.exe and java.exe in your system. Fo r me it is C:\Program Files\Java\jdk1.7.0_07\bin. 11. Windows and linux has slightly different commands for setting path variable through command line. In windows you can do as below: set path=%PATH%; 12. If you set as above through command prompt, you will have to do this every t ime you open a new command prompt. You can actually do it permanently by setting the PATH through Environment variable settings page.

You might also like