HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

.profile is missing

 
Duffs
Regular Advisor

.profile is missing

Hi,

I have installed java1.5.20 on a HP_UX 11.23 (ia64) server. I now need to point the appropriate user account to the path of the new version. However there is no .profile file in the user account I need to change and so when I echo the JAVA_HOME it still points and uses the previous version.

Where else could this VAR be called from if it does not have a .profile file?

R,
D.
4 REPLIES
Patrick Wallek
Honored Contributor

Re: .profile is missing

Perhaps /etc/profile?
James R. Ferguson
Acclaimed Contributor

Re: .profile is missing

Hi:

> However there is no .profile file in the user account I need to change

So, does the account in question use the C-shell ('/usr/bin/csh')? If so, look at '.cshrc' or '.login' and add something like:

setenv JAVA_HOME thehomeofjava

Regards!

...JRF...
Duffs
Regular Advisor

Re: .profile is missing

Hi,

The only listed file (included hidden files) within the user home dir is .sh_history.

The previous path is not listed in the /etc/profile.

R,
D.
James R. Ferguson
Acclaimed Contributor

Re: .profile is missing

Hi (again):

> The only listed file (included hidden files) within the user home dir is .sh_history.

So if the login shell is '/usr/bin/sh' (the default as specified in '/etc/passwd') then copy a "virgin" '.profile' from:

# /usr/newconfig/etc/skel

...and add:

export JAVA_HOME=javaliveshere

Be sure to log out and then log back in to test.

Regards!

...JRF...