Changed to use temp file to pass classpath and arguments to avoid hitting OS limitation of command length.