Common tools for java program