Oh. Oops. My mistake. That path line is correct syntax, but won't fix the problem. You see, the javac we *don't* want is in /usr/bin, which will still come before the ones you're adding. If you want to fix the problem using the path, you'll have to add them with something like this:
export PATH="/usr/java/jdk1.5.0_06/bin:/usr/java/jdk1.5.0_06/jre/bin:$PATH" This puts the existing path, which includes the /usr/bin, in the new PATH *after* the one for the sun java. Sorry I didn't see it before. Lloyd Lloyd Brown wrote: > 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 > > -------------------- 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
