run java command after redirection