When I launch a Java program in from my script, it does not run properly.