Thursday 12 November 2015

Installing JAVA - Part 1

Installing JAVA



The only thing required to run Java is the Java jdk (Java Development Kit).For Java Developers, includes a complete JRE plus tools for developing, debugging, and monitoring Java applications. Downloading and installing Java is easy and free and anyone can install the latest version of Java jdk from official site of oracle on their Java Platform, Standard Edition page. After selecting the latest Java jdk kit one has to select their Operating System and Accept License Agreement. After that proceed with the download and easy install.




After successful installation of Java user have to give the path of where Java to inform the system that if a Java operation comes get the resources from here. Here I'm giving an example of path of java in Windows 10. You can similarly do these steps in your Operating System.

Before giving the path of Java to system if you write javac (Java Compiler) in command prompt it will not recognize the command given.

To resolve this issue you've to give the path where you installed Java in your Operating System. If you've proceed with the normal installation procedure your Java jdk should be installed in "C:\Program Files\Java\jdk 1.8.0_60\bin" where the highlighted text is the version Java jdk installed in your Operating System which might be different at your time of installation. 
To get this location for the path, go to bin folder of Java jdk and right click on any item in that folder and select Properties. In General tab of your properties you can see the path in location. Select the path and copy the text for the next step.






















 The next step is to give the path which we've been talking about so far. 
  • Go in properties of My Computer or This PC whatever you've in your system or select System in Control Panel to reach here. 
  • Select Advanced system settings which will open System Properties
  • In System Properties select Environmental Variables
  • In Environmental Variable tab click on New... to add the path of Java jdk. 
  • In variable name write Path
  • In Variable Value paste the location copied above (which in general would be C:\Program Files\Java\jdk 1.8.0_60\bin) and select OK to complete the procedure.


After completing the above steps again open command prompt and write javac and you will be getting the possible option that you can use with javac which means your installation part is done.

And this is it. Once you've given the path in system variables of your system and your Operating System can recognize Java commands you can jump right into Java programming.