I don't know if this is an artifact of the email system or not, but your
path line included a space between the /usr/java/jdk1.5.0_06/bin: and
the /usr/java/jdk1.5.0_06/jre/bin.  It shouldn't be there.  Other than
that, this should work.

Often, though, rather than change my path, I like to put in symlinks,
usually under /usr/local.  So, in this case, I'd recommend you create a
symlink called javac inside /usr/local/bin that points to
/usr/java/jdk1.5.0_06/bin/javac (syntax below).  Repeat for any other
ones you need too.  Since the $PATH variable is evaluated from left to
right, the one in /usr/local/bin will be chosen before the one in
/usr/bin, since /usr/local/bin comes first.

Anyway, either way would work.  Good luck, and let us know how it works out.

Lloyd



Symlink syntax (you may have to do this as root):

ln -s /path/to/target /path/to/link

So, for example, try this:

ln -s /usr/java/jdk1.5.0_06/bin/javac /usr/local/bin/javac

Alex Esplin wrote:
> On 2/4/06, Zak <[EMAIL PROTECTED]> wrote:
> 
>>The SDK was installed at: /usr/java/jdk1.5.0_06
>>The Path is:
>>/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/zak/bin
> 
> 
> in your home directory do:
> vim .bashrc (or whatever other text editor you use)
> and add the following line:
> export PATH="$PATH:/usr/java/jdk1.5.0_06/bin: /usr/java/jdk1.5.0_06/jre/bin"
> This will add the locations where javac and java live to your path.
> 
> Someone might want to double check the syntax on that export line, my
> linux machine is doing emerge -e system itself right now and I can't
> look at my own .bashrc.
> 
> 
>>The Path to the javac is:/usr/bin/javac
> 
> 
> Then go to /usr/bin (as root) and remove the javac and java
> executables that are in there.
> 
> --
> 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/newbies
> 
> 


--------------------
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/newbies

Reply via email to