Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Java/How to Setup Java on your PC In order to execute java programs and application one needs to install Java Runtime Environment that has all supporting tools like java compiler, java debugger, tools to execute java programs. In order to install JDK ( Java Development Toolkit) on the computer you need to download the jdk from Java Sun Microsystems Please follow the step to dowload JDK 1.6 update 7 from Sun Microsystems for Windows platform. 1. Click here. You will find a screen like below. 2. Click on the link "JDK 6 Update 7". 3. Select the appropriate platform. Click on the check box with label "I agree to the Java SE Development Kit 6 License Agreement. Then you need to click on the continue button as depicted in figure below. 4. 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. 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.6 you will be able to execute any java file. 9. In order to be able, except from running, to compile a file you should perform some additional steps. Specifically you have to find the directory that java has been installed to your system. Usually at c:\\Pogram Files\java\jdk1.6.0_7\bin . Keep in mind for a while this path. 10. Right click to My Computer icon located at your Desktop and select Properties as shown at the image below. 11. Select “Advanced” Tab, and then press “Environment variables” button. 12. Press “New..” button as shown below 13. Give “PATH” as variable name while for Variable value give the path acquired from step 9. 14. Press Ok. You have successfully installed JDK! Now you can also compile a java source file (*.java). 15. To check whether JDK 1.6 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"); } 16. 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. 17. Run the command java test. Congratulations!!!, You have successfully installed java on your system.