On Fri, Jan 30, 2015 at 3:16 PM, Barkow, Eileen <[email protected]> wrote:
> You really do not need the PATH statements. Just cd to the java bin > directory and run : > java -cp . -version (or java -cp . javaclass - cp classpath has to > point to correct directories needed for > java class to run; . specifies current directory). > > cd /usr/lpp/java/J6.0.1/bin > java -cp . -version > > This may or may not work. Unlike Windows, the current working directory is _not_ searched to locate an executable file _unless_ it is on the PATH. I.e. in Windows the current working directory is always implicitly on the PATH, not so in UNIX. However, many UNIX people (or shop standards) emulate this behavior by having a single period as the name of one of the directories on the PATH. Just as an aside, for ease of viewing, when I want to see what is on the PATH, I use a UNIX command like: printenv PATH | tr ':' '\n' This translates the colon separator to a new line so that each directory is on a separate line. I threw that in for free. <grin/> Well, the boss has left for the day. So you can guess what now occurs ... -- He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
