|
quote:
originally posted by andy2000
i think u did not understand my questions:
1) is the location /bin/sh a standard on all unix systems (aix, hp-ux, linux, sun ...)???
it is the standard location for a bourne-type shell; it may or may not be a posix shell
quote:
2) since i do not want to care where java located:
`which java` -cp $java_home myclass
if java is not in your path, then which (which is an unreliable command; there are at least two versions of it, one of which will not work in a bourne-type shell) will probably not find it.
if java is in your path, you don't need which, just use the command name.
|