On Fri, 30 Jan 2015 21:16:02 +0000, Barkow, Eileen  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
> 
You're assuming that "." is in the executable search path.  Not everyone
does that.  Some think it's a Bad Idea.  It's at least inconvenient if you
want to find a .jar relative to the current working directory

Besides, the original question was, "How do I find the java bin directory?"

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to