#89 fixed bugs and improved experience when executing java command.