- 论坛徽章:
- 0
|
非常感谢大家对我的帮助,我按照briangao (Brian)的指导,重新写了.bash_profile:返回的现象是这样的:
1. ".bash_profile" [dos] 23L, 1329C written
[root@www work]# wc -l .bash_profile
23 .bash_profile
2. Last login: Fri Dec 15 09:04:19 2006 from 61.51.121.160
-bash: /home/work/.bash_profile: line 24: syntax error: unexpected end of file
-bash-3.00$
3. 按照lizisor 的提示到root下起了一下,
[root@www bin]# ./startup.sh
The JAVA_HOME environment variable is not defined
This environment variable is needed to run this program
这些现象显示,问题并没有得到改善.
这里还请帮助我的朋友们看一下本贴的一楼的问题,和导致问题出现的原因 .真心感谢了
现在我的work下的cat .bash_profile是这样的:
-bash-3.00$ cat .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
JAVA_HOME=/usr/java/j2sdk1.4.1_02
JAVA_OPTS="-server -Xmx256m -Xms128m"
CATALINA_OPTS="-Xms128m -Xmx512m"
#PATH=/usr/java/jdk1.5.0_06/bin ATH
PATH=.:JAVA_HOME/bin ATH
CLASSPATH=.:/usr/java/j2sdk1.4.1_02/bin:/usr/java/j2sdk1.4.1_02/lib:/home/work/21ct:/home/work/21ct/lib/mssqlserver.jar:/home/work/21ct/lib/chart/jfreechart-1.0.0-rc1.jar:/home/work/21ct/lib/chart/gnujaxp.jar:/home/work/21ct/lib/chart/jcommon-1.0.0-rc1.jar:/home/work/jtom/webapps/ROOT/WEB-INF/lib/mm.mysql-2.0.4-bin.jar:/home/work/21ct/lib/chart/junit.jar:/home/work/21ct/lib/servlet.jar:/home/work/21ct/lib/chart/servlet.jar:/home/work/21ct/lib/msbase.jar:/home/work/21ct/lib/msutil.jar:/home/work/jtom/bin/bootstrap.jar:/usr/java/j2sdk1.4.1_02/lib/tools.jar:/home/work/21ct/lib/jdom.jar:/home/work/21ct/lib/jaxp.jar:/home/work/jtom/webapps/ROOT/WEB-INF/lib/mail.jar:/home/work/jtom/webapps/ROOT/WEB-INF/lib/mysql-connector-java-3.1.12-bin.jar:/home/work/jtom/webapps/ROOT/WEB-INF/lib/classes12.jar:/home/work/jtom/webapps/ROOT/WEB-INF/lib/activation.jar:/home/work/jtom/webapps/ROOT/WEB-INF/classes
export PATH
export JAVA_HOME
export JAVA_OPTS
export CATALINA_OPTS
unset USERNAME
export CLASSPATH
-bash-3.00$
[ 本帖最后由 zhangyan@tq.cn 于 2006-12-15 10:54 编辑 ] |
|