L******r 发帖数: 199 | 1 【 以下文字转载自 Linux 讨论区 】
发信人: LordBear (LordBear), 信区: Linux
标 题: Classpath setting question
发信站: BBS 未名空间站 (Mon Jun 25 22:30:29 2007), 转信
一脚本,同一RH服务器,老板连过去没问题,我就跑不了:
老板说Check your CLASSPATH and location of java - should be
/aa/app/jdk1.6.0_01/bin/java
$ echo $SHELL
/bin/tcsh
我的默认Shell是tcsh,我在/etc目录下修改了.bashrc,但是一点用处没有。
set JAVA_HOME=/aa/app/jdk1.6.0_01/bin/java
export JAVA_HOME
set PATH=$JAVA_HOME/bin:$PATH
export PATH
set CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export CLASSPAT | A**s 发帖数: 8 | 2 If you are using tcsh, why change .bashrc (which is used by bash)? And you
should change your local copy (~/.XXX rather than /etc/XXX). Also I don't
know whether "export" works (export is a command under sh/bash).
I am also curious about your JAVA_HOME. Shouldn't it be set to Java install
directory rather than the executable? |
|