How do I change the default PATH that's used by the CDE, Java Desktop?

Am having problems with SunStudio 11 and the C compiler - it's looking for some language specific file, which isn't installed during the installation process.

The SunSolve message says I need to put /opt/SUNWspro/bin into the path ahead of /usr/ccs/bin, but just WHERE this is supposed to happen has been impossible to find.

Anyone know where I am supposed to do this?

Thanks in advance,

Ed Otto

[428 byte] By [EdwardOtto] at [2007-11-26 9:26:57]
# 1
I think you can find several answers here: http://forum.sun.com/jive/thread.jspa?threadID=89432&messageID=311434
MaximKartashev at 2007-7-7 0:06:15 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2

Depending on how you are using your system there are several different files to edit.

My guess is you are using the bash shell so you need to edit the following files

{homedir}/.profile

{homedir}.bashrc

Add/Edit the following lines

PATH={studioinstallpath}/bin:${PATH}

this will place your cc compiler on your path in front of /usr/ccs/bin etc..

sloanCB at 2007-7-7 0:06:15 > top of Java-index,Development Tools,Solaris and Linux Development Tools...