Installation of Java
Step 1: Install java from according to your operating system http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads 2133151.html and follow the instructions to download java.
Step 2: Run .exe file to install java on your machine.
Step 3: After installation set the path of environment variable as follows:
To include the java directory to the path use the following command in windows:-
Right click on My Computer ->Properties ->Advanced System setting ->Environment Variable ->Select Path->Edit
Then it will open a box in which you add the path where the java is installed by using ; (semi colon).
If it contains ‘C:\Windows\System32′ then change your path by ‘C:\Windows\System32; C:\Program Files\java\bin’.
On Linux, UNIX, Solaris
You can set path in linux by using following command:
Where JDK is installed in the home directory under Root (/home)
To write and execute the java programs following editors are mostly used:-
- Notepad: Write program in notepad and the save it as yourprogram_name.java.
Then execute the program in command prompt using:
javac youprogram_name.java // To compile java youprogram_name // To Execute
- Netbeans: It is a Java IDE which is open-source and free. Download it form from http://www.netbeans.org/index.html.
- Eclipse:It is also a Java IDE which developed by the eclipse open-source community. You can be download it from http://www.eclipse.org/
This blog will help you get a better understanding of Java Mapreduce Tutorial!