Web Hosting Talk







View Full Version : editing path & classpath


Christopher
08-02-2002, 05:38 PM
Hi,

I need to add directory paths to the PATH and CLASSPATH environment variables on the server.

Can anyone tell me how to that?

Thank you,

Chris


PS: to be exact, this is what I was told to do, I just don't know how to:

---------------
1) Add the directory /classes/jdk1.2.2/bin to the PATH environment variable on the server.

2) Add the directory /classes to the CLASSPATH environment variable
on the server.

Both of these directories are relative to the home directory.

---------

Michael
08-02-2002, 07:24 PM
Hello

Check out the file /etc/profile.d/java.sh .

Mike

Christopher
08-02-2002, 07:47 PM
hmm, I don' t have a java.sh in /etc/profile.d/

Would path and classpaths be edited in a java.sh file?

:confused:

Chris

Michael
08-02-2002, 09:43 PM
We have tomcat and jdk 1.3.1 installed . What happens when you type $CLASSPATH ?

MIke

Christopher
08-02-2002, 11:00 PM
Nothing.

blacknight
08-03-2002, 05:08 AM
You can create a java.sh in the profile.d using pico.
I presume you are trying to setup some kind of Java on your server.
If you download the JDK/SDK from sun and follow the installation instructions, create the java.sh and logout. Log back in and you should have the JVM in your path

Christopher
08-03-2002, 01:38 PM
Got it :)

Someone else installed the jdk for me, did not put the java.sh in, I did a little research, found what needed to go into java.sh, made it executable, and it works.

Thank you all for helping me figure out what to do~

Chris