Java programming

Hi

I'm logging on to a remote server through SSH. When my boss tries to go on to the server and logs on to the root account, he is able to run java with the classpath option (eg, "java -cp myjar.jar myClass"). When I try the same thing from my non-root account, I get the message "unrecognized option -- `-cp'". Furthermore, when I try to access a MySql database I get the error "Abnorted- core dump", but my boss on the root account can do it no problem. This must have something to do with the way the permissions are set, right? If so, what specific options need to be set so I can do this sort of thing? Any help is very much appreciated!

Brock

More likely to be the environment for your account v the root account. Get the printout of 'env' for each and compare, you'll probably see the problem. The -cp option in java is the old syntax, newer versions use -classpath (or vice-versa, I can't remember which way round it is). Which leads me to believe you each have different versions in $PATH

Hi Reborg

Thanks for your time, and your quick reply!

I actually managed to solve the problem. Turns out, some evil script was abducting my java command and running a crappy, useless script instead. I eventually figured it out with the help of someone who knows a LOT more about Unix than me! Well, I'm just glad it's over now.

Brock