On 8/25/07, Daniel Dilts <[EMAIL PROTECTED]> wrote:
> First things first, where should I put the Java directory?  /opt /usr/… or
> somewhere else?

I usually put things that I install myself in /user/local

> Secondly, I'm not certain how to get it so that that is then found when
> typing java at the commandline.  Do I put some script in /usr/bin?

You need to add the bin directory in your java install to your path.
You also need to determine if there is already a java directory in
your path, because if there is, adding your newly installed java/bin
directory to the end of your path won't do anything.  At the
commandline, type:

which java

This will tell you if there is already a path to a 'java' command in
your PATH variable.  If there isn't, no worries.  So now you need to
add the path to your new java bin directory to your PATH variable.  If
you don't already have a java directory, add the following to your
.bashrc or .bash_profile:

export PATH="$PATH:/path/to/your/java/bin"

If you do already have a java directory, do it like this:

export PATH="/path/to/your/java/bin:$PATH"

If you're not using bash as your shell, let us know and we can fill
you in as to what to do.

Cheers.

-- 
Alex Esplin
--------------------
BYU Unix Users Group 
http://uug.byu.edu/ 

The opinions expressed in this message are the responsibility of their
author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to