LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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

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


Cheers,
Tink
 
Old 12-20-2003, 12:13 PM   #3
bronko
Member
 
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
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!
 
  


Reply


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


All times are GMT -5. The time now is 08:24 PM.

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