Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

userconfig.sh file and Classpaths???

Status
Not open for further replies.

prmckee

Programmer
Jul 27, 2004
8
0
0
IE
Can anyone help me in relation to classpaths in Linux (Very novice user).
After installing java (or such like), I have been trying to set the class path for same.

When I set the class path in a terminal window like this:

PATH=”$PATH:/opt/j2sdk1.4.2_04/bin:.”
export PATH

and now I can access java components without reference to the java directory. But once I close this terminal window the “path” disappears and is unavailable.

I have seen mention to “serconfig.sh” file, I presume that this is like the old config.sys file in a windows system, but I can not find this on my setup.

Any help would be much appreciated
Phil
.
 
Is your system a single-user machine (yours) ?

Then editing /etc/profile and adding the path there would make it available for every shell.

Per user files may be ~/.bashrc, if you only like to set it for one user.

seeking a job as java-programmer in Berlin:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top