There should be a file (hidden) in your home directory called .bashrc that specifies terminal setup commands. This is where you can change the PATH environment variable.
The way to do this: find a good blank line, type in PATH=$PATH:/<path to jdk bin files> My .bashrc file looks something like this: PATH=$PATH:/usr/local/jdk1.5.0_05/bin In fewer words than more words, this says take the existing search path for executables ($PATH) and append(:) this directory in the file system. Hope this helps. You can also temporarily set a variable using the export from a terminal: export PATH=$PATH:/usr/local/... editing .bashrc (there are a couple other files that will do the same thing) saves you from doing this every time you want to run jdk commands. On Tue, 2005-11-22 at 06:27 -0700, [EMAIL PROTECTED] wrote: > Send newbies mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://phantom.byu.edu/cgi-bin/mailman/listinfo/newbies > or, via email, send a message with subject or body 'help' to > [EMAIL PROTECTED] > > You can reach the person managing the list at > [EMAIL PROTECTED] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of newbies digest..." > > > Today's Topics: > > 1. JAVA on my system (Larry Landen) > 2. Re: JAVA on my system (Alex Esplin) > 3. Re: JAVA on my system (Larry Landen) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 21 Nov 2005 22:00:25 -0700 > From: Larry Landen <[EMAIL PROTECTED]> > Subject: [newbies] JAVA on my system > To: Newbie Help <[email protected]> > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-1" > > Please help: how do I get JAVA onto my system (Linux Fedora Core 3)? First > of all: I don't know how to do it. Second: I've heard if I don't do it > right, then JAVA will disappear from my system each time I upgrade it by > downloading and installing updates. > > Larry > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://phantom.byu.edu/pipermail/newbies/attachments/20051121/edfd7143/attachment.html > > ------------------------------ > > Message: 2 > Date: Mon, 21 Nov 2005 22:31:51 -0700 > From: Alex Esplin <[EMAIL PROTECTED]> > Subject: Re: [newbies] JAVA on my system > To: Newbie Help <[email protected]> > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1 > > On 11/21/05, Larry Landen <[EMAIL PROTECTED]> wrote: > > Please help: how do I get JAVA onto my system (Linux Fedora Core 3)? First > > of all: I don't know how to do it. Second: I've heard if I don't do it > > right, then JAVA will disappear from my system each time I upgrade it by > > downloading and installing updates. > > java.sun.com has a rpm version of their installer if you want to use > that. I did the following: > > 1. make a directory for java in your home directory. > 2. download the self-installing executable from java.sun.com it'll be > named jdk-1blah-blah.bin > 3. save this file in your directory home/larry/java or something like that > 4. change the permissions to make it executable > 5. run it in your directory to install java > 6. add the path to your java installation to your $PATH > > -- > Alex Esplin > > > > ------------------------------ > > Message: 3 > Date: Mon, 21 Nov 2005 22:46:38 -0700 > From: Larry Landen <[EMAIL PROTECTED]> > Subject: Re: [newbies] JAVA on my system > To: Newbie Help <[email protected]> > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-1" > > Um... how do I do the sixth thing you listed? See what I wrote inside your > message. > > On 11/21/05, Alex Esplin <[EMAIL PROTECTED]> wrote: > > > > On 11/21/05, Larry Landen <[EMAIL PROTECTED]> wrote: > > > Please help: how do I get JAVA onto my system (Linux Fedora Core 3)? > > First > > > of all: I don't know how to do it. Second: I've heard if I don't do it > > > right, then JAVA will disappear from my system each time I upgrade it by > > > downloading and installing updates. > > > > java.sun.com <http://java.sun.com> has a rpm version of their installer if > > you want to use > > that. I did the following: > > > > 1. make a directory for java in your home directory. > > 2. download the self-installing executable from > > java.sun.com<http://java.sun.com>it'll be > > named jdk-1blah-blah.bin > > 3. save this file in your directory home/larry/java or something like that > > 4. change the permissions to make it executable > > 5. run it in your directory to install java > > 6. add the path to your java installation to your $PATH what do I type to > > do this? > > > > -- > > 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 > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://phantom.byu.edu/pipermail/newbies/attachments/20051121/8c571dc9/attachment-0001.htm > > ------------------------------ > > ____________________ > BYU Unix Users Group > http://uug.byu.edu/ > > The opinions expressed in this message are the property and opinions of those > posting. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. > ___________________________________________________________________ > List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/newbies > > > End of newbies Digest, Vol 32, Issue 10 > *************************************** > -------------------- 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
