Before we start learning Java we should prepare our machine so that our machine should understand as well as process the code written in Java language.
To configure our system for java, we should know following :
- As per our operating system being installed in our system, which extension of file we need to use for installing java. ( as for window it requires .exe file and for linux .tar file)
- which version of Java is released and as per requirement which version of Java we should install.
To get these information please visit ORACLE OFFICIAL WEBSITE and get the supported file and required version.
- After downloading the required file where you should install it, by default if you follow the installation instruction for windows operating system then it will be installing in "C" drive inside program files, but i will not suggest to install it inside program files directory because later when u will be installing build tool like ant then you will be facing problem. so i will suggest to install it in "C" drive but in separate Java directory.
- After installing the Java we need to set the path for installed java so that our system could understand that newly installed software.
- I am not going to explain how to set the system variable and path for Java, because if you will Google it you can find lots of link. (it is always better to take little effort! so dig to Google for this step) or you can follow my another post http://learntechnolgy.blogspot.in/2014/03/configuring-java-in-windows.html
In upcoming posts,i will explain why we need to set the path ? What is system variable and class-path.