on 05-28-2012 4:30 PM
Hi gurus
I am new to SUSE LINUX 11 SP1, how to set java environment variables permanently for all users?
I cant find .bash_profile in root directory ...
Regards
Raju
you can check .cshrc file in home directory of <sid>adm, and based on that you can find java required files ex:j2eeenv_`hostname`.csh
May be before that first check <sid>adm is using which shell based on that you check required files , normally sap system uses csh , you can check same in /etc/passwd file also.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
take a look at the /etc/profile.d directory for a script setting your java environment and update this script or update the logical links to whicht your jdk and jre point
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Login to your account and open .bash_profile file
$ vi ~/.bash_profile
Set JAVA_HOME as follows using syntax export JAVA_HOME=<path-to-java>. If your path is set to /usr/java/jdk1.5.0_07/bin/java, set it as follows:
export JAVA_HOME=/usr/java/jdk1.5.0_07/bin/java
Set PATH as follows:
export PATH=$PATH:/usr/java/jdk1.5.0_07/bin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Do u try command ls -lar ?
Btw, are u doing sap installation? If yes, u just need to export java_home as root and java_home will added to sidadm profile.
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.