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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

editing Root's .profile 1

Status
Not open for further replies.

zum

Technical User
Mar 31, 2003
148
US
I'm a newbie trying to installed Sun Studio 11 on my Sun Solaris 8 server. My install gets an immediate error.

java.lang.NoClassDefFoundError

I think it my have to do with my PATH in my root .profile.

My instructions tell me to set my PATH environment variable to include the path /opt/SUNWspro/bin.

I'm not really sure where to add this in my .profile. When I do an echo $PATH it shows /usr/sbin:/usr/bin. I need it to also point to /opt/SUNWspro/bin

Any help would be appreciated.

Thanks,

Zum
 
type this
Code:
echo PATH=\$PATH:/opt/SUNWspro/bin;export PATH >>/.profile
the logout and log back in. However, given the nature of this question, I highly recommend you stop and go get a copy of 'UNIX in a Nutshell' or even 'UNIX CD Bookshelf' from O'Reilly and Associates. These are the best resources, IMNSHO, for new UNIX users. You don't want to be mucking about with root (read Godlike) powers on a UNIX box without an understanding of the system.
 
Always a good idea to copy .profile to (say) .profile.good before adding things or deleting things from it too.
 
Thanks.. The change didnt seem to help though. I'm guessing it a problem with my java install. Probably also an issue with the profile.
 
This gets defined in CLASSPATH, not PATH. Change that to...
Code:
echo CLASSPATH=\$CLASSPATH:/opt/SUNWspro/bin;export CLASSPATH >>/.profile
See if that works.

You should also include any other directories that have Java class files in them.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top