Discussion Locked

setting PATH variables in Solaris 8

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi, having trouble with getting our JRE and Oracle to work correctly. I believe the issue resides in setting the PATH variable to point correctly to the new location of the recently installed JDK131. However, I'm not exactly sure how to set the PATH variable in Solaris 8. I figure it is either a command like 'set PATH=' or it is in a file. any help would be greatly appreciated.
chris

3 replies

by cpfeiffe

It depends on what shell you are using. Here are examples for the three most common shells.

sh (bourne)
PATH=newdir:$PATH;export PATH

ksh (korn)
export PATH=newdir:$PATH

csh (C)
setenv PATH "newdir:$PATH"

Using $PATH ensures that other necessary settings already in your path are reapplied.

You can also set this in the .profile or .cshrc file for users (including root and/or oracle) so when the user is logged in the path will be set.

Good luck.

This discussion is closed to new replies.