Question for Carl Parish

Chris Feltner plug-discuss@lists.plug.phoenix.az.us
Sun, 13 Oct 2002 11:09:42 -0400


Carl, I have a few questions for you regarding the steps that you have suggested.


$ rpm -iv ./j2sdk-1_4_0_01-linux-i586.rpm

The rpm will have installed the sdk to the /usr/java/ dir so you will have to add that to your PATH environment variable. Quite a few java programs will look for an environment variable called JAVA_HOME so lets do them both at the same time. First open your /etc/profile file




QUESTION #1; I didn't have to install the rpm above, but the file is in the directory that you said it would be in. Is everything still the way it should be?




$ vi /etc/profile

Then add the following lines



QUESTION #2; When I put vi /etc/profile.d I get colored characters and no comand prompt, what should I do at this point, before I add the following lines?




JAVA_HOME="/usr/java/j2sdk1.4.0_01"
PATH="${PATH}:${JAVA_HOME]:$[JAVA_HOME]/bin"
export JAVA_HOME PATH

save this file, exit, then source it

source /etc/profile

Now you can check that java has been added to your $PATH variable by typing

echo $PATH
javac
Published Oct 08, 2002 - 02:09 PM