Also make sure you log in with the same user, and that the environmental variables are the same, mainly path and I think java_home can't remember right off the top of my head. But you could catch what it says when you do the env command with your script and see if it loads the variables correctly. If not you could always set your java_home in your script command. With