在 2006-07-14五的 14:11 -0600,Darryl Gregorash写道:
On 14/07/06 04:24, stephan beal wrote:
On Friday 14 July 2006 08:58, 张韡武 wrote:
1. I tried to add 'export JAVA_HOME=/opt/ibm/java2-i386-50/jre/' in /etc/profile. Result: $JAVA_HOME is still
"/usr/lib/jvm/java"
If this happens, then JAVA_HOME is possibly ALSO set in your ~/.profile or ~/.bashrc. Try looking in one of those files.
i hope this helps...
I think these are getting set in one of the scripts in /etc/profile.d, eg. /etc/profile.d/alljava.sh
Thank you! after followed your advice read /etc/profile.d/alljava.sh I come up with a trick to change to IBM JRE easier. I know this is not the 'correct' way but it works for me without having to touch the config files. # mkdir /usr/lib64 # ln -s /opt/ibm/java2-i386-50/ /usr/lib64/jvm This trick used the feature that alljava.* scripts always think if the system has 64-bit jvm it should be used in place of traditional /usr/lib/jvm I never worry abut it because the box is not 64-bit processor -- 锐业软服(国内业务) http://www.realss.cn Real SoftService http://www.realss.com 销售咨询(Sales Department): 0086 592 20 99987 (Chinese, German, English) 国际业务(International Sales): 0086 10 8460 6011 (German and English) 联系:厦门大学科技园,嘉庚二号楼6楼 邮政:厦门大学2312号信箱(邮编361005)