Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-19-2003, 12:17 PM   #1
Registered: Dec 2003
Distribution: Debian/unstable
Posts: 30

Rep: Reputation: 15
How to set PATH and CLASSPATH environment variables


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
Old 12-19-2003, 01:00 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913
Tried export yet? :)

Old 12-20-2003, 12:13 PM   #3
Registered: Dec 2003
Distribution: Debian/unstable
Posts: 30

Original Poster
Rep: Reputation: 15
Yo thx,

this is what i found out :

when in the command prompt typin
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
'set PATH= %PATH;c:\blabla;...'

in a sh-shell-file this two lines
export PATH
didnt do the job, whats wrong?

also in a csh file
setenv PATH /a/path/
didn't work, but I found it documented that style somewhere. should it have been

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!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set the CLASSPATH environment variable Rodotheos Programming 3 06-20-2005 05:30 AM
Help with the currently set environment variables!! apoc013 Linux - Newbie 6 01-21-2004 02:28 AM
How to set PATH How do I set PATH environment variable? Tranquil Linux - Newbie 3 11-02-2003 03:52 AM
set up path,classpath in linux(slaware9) for java Manjula.S Linux - Software 5 10-07-2003 12:38 AM
rh7.1 environment variables (eg path) dave_lane Linux - Newbie 1 09-20-2001 09:05 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:33 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration