Added code blocks for java command