LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to set PATH and CLASSPATH environment variables (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-set-path-and-classpath-environment-variables-127287/)

bronko 12-19-2003 11:17 AM

How to set PATH and CLASSPATH environment variables
 
Hi

I'm currently trying to install java on debian-unstable and therefore have to know how to change the PATH and CLASSPATH variable. thx for any help.

regards bronko

Tinkster 12-19-2003 12:00 PM

Tried export yet? :)


Cheers,
Tink

bronko 12-20-2003 11:13 AM

Yo thx,

this is what i found out :

when in the command prompt typin
Code:

PATH=/in/space/somewhere:/in/space/somewhereelse: ...
will do the job. The different paths are separated by colons (colon = ':').
You can find out wether the job was done with 'echo $PATH'.
What I didnt find out is how to include the old path into this assignment. (in m$-dos something like
Code:

'set PATH= %PATH;c:\blabla;...'
).

in a sh-shell-file this two lines
Code:

PATH=/usr/local/j2sdk_nb/j2sdk1.4.2/bin/:/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin
export PATH

didnt do the job, whats wrong?

also in a csh file
Code:

setenv PATH /a/path/
didn't work, but I found it documented that style somewhere. should it have been
Code:

setenv(PATH,"/apath/");
?

where do I change the startup values of environment variables?

This is not urgent any more, but if someone is in the mood to teach someoneelse some lessons: you are very welcome ;)

mfg bronko
long live the penguin!


All times are GMT -5. The time now is 12:53 PM.