fixing paths for java command and classes