What user you are using? Anyways go to the home directory of that user and add it to the to top of .profile file. Exit and su again, it should be there.
From: Luiz Fernando <lfcruz@...>
To: sapbasiscomponents@yahoogroups.com
Sent: Friday, January 9, 2009 5:32:25 PM
Subject: [sap bc] Set JAVA_HOME HP-UX
Hello!
Does anybody know how can I set the environment variable JAVA_HOME on HP-UX?
I can set it with the commands:
JAVA_HOME=/opt/ java1.4; export JAVA_HOME
PATH=$PATH:$ JAVA_HOME/ bin; export PATH
PATH=$PATH:$ JAVA_HOME/ bin; export PATH
But everytime I disconnect from the session it losts the variables... I need it to be set permanently.
Any clue?
Thanks!