Use lib instead of modules.
Add util methods for java related operations.
Add some tests for java#checkVersion().
Add license file.