| Please follow the step to dowload JDK 1.5 from Sun Microsystems for Windows platform.
1. Click here. You will find a screen like below.
2. Click on the link called "Previous Releases". Then click on "J2SE 5.0 Downloads"
3. Click on the link "JDK 5.0 Update 11".
4. Click on the radio button with label "Accept License Agreement". Then you need to click on the link that has been highlighted in the below image.
5. Then it will ask you to save the file. Choose any directory location on your computer and click on "Save" button.
6. It will immediately start downloading.
7. Once it is downloaded on your system you have to install it on your PC/laptop. Just follow the instructions given during the installation. Believe me it is not difficult to install JDK.
8. After installing JDK 1.5 you will be able to execute any java file.
9. To check whether JDK 1.5 has been installed properly on your PC/laptop create a file called test.java and and add the below code in it.
public class test {
public static void main(String args[]) {
System.out.println("Java is working properly on your machine");
}
}
10. Open a cmd window and go to the directory location where you saved test.java. Execute the command javac test.java. javac is a tool used to compile a java file. Once it compiles a java file successfully it will automatically create a file called test.class in the same directory.
11. Run the command java test.
Congratulations!!!, You have successfully installed java on your system.
|