Differences
This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
courses:mapreduce-tutorial:step-21 [2012/01/30 15:34] majlis |
courses:mapreduce-tutorial:step-21 [2012/01/31 11:18] (current) straka |
- Create a ''Makefile'' containing <file Makefile Makefile>include /net/projects/hadoop/java/Makefile</file> | - Create a ''Makefile'' containing <file Makefile Makefile>include /net/projects/hadoop/java/Makefile</file> |
| |
When typing ''make'', every Java file is compiled (with the Hadoop library and some extra classes) to a jar file. It is of course possible to compile just selected sources using ''make file1.jar file2.jar''. | ===== Compiling ===== |
| |
| When typing ''make'', every Java file is compiled (with the Hadoop library and some extra classes) to a jar file. It is of course possible to compile just selected sources using: |
| make ClassName1.jar ClassName2.jar |
| or |
| make -f /net/projects/hadoop/java/Makefile ClassName1.jar |
| |
Command ''make clean'' remove for every Java file its jar file and subdirectory with compiled classes. | Command ''make clean'' remove for every Java file its jar file and subdirectory with compiled classes. |
| |
===== Exercise ===== | ===== Exercise ===== |
Create a directory and a ''Makefile'' as described and download {{:courses:mapreduce-tutorial:step-21.txt|WordCount.java}}. Try compiling it using ''make''. | Create a directory and a ''Makefile'' as described and download {{:courses:mapreduce-tutorial:step-21.txt|CompileTest.java}}. Try compiling it using ''make''. |
| |
===== Using VIM ===== | ===== Using VIM ===== |
* Key F8 opens a //taglist// -- small window with classes, fields and functions in the current file. | * Key F8 opens a //taglist// -- small window with classes, fields and functions in the current file. |
* Pressing ''\\'' comments/uncomments current (or selected) line. | * Pressing ''\\'' comments/uncomments current (or selected) line. |
| |
| |
| |
---- | ---- |