由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - Classpath setting question
相关主题
如何改变CLASSPATH?[转载] using ssh in tcsh script
[转载] About the history如何单步执行shell?
how to change login shell?which shell is best?
login shell and normal shell?shell programming问题:如何同时run多个作业
急:ld.so.1的问题Change shell to tcsh?
how come this stupid question?how to redirect error output under unix
怎么更改一些系统命令的路径,非管理员? 如gcc等.what are the differnces between unix shell?
.cshrc?.login?.profile?Re: [转载] how to get the return value of a command by shell?
相关话题的讨论汇总
话题: java话题: classpath话题: home话题: export话题: path
进入Unix版参与讨论
1 (共1页)
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?
1 (共1页)
进入Unix版参与讨论
相关主题
Re: [转载] how to get the return value of a command by shell?急:ld.so.1的问题
按你们的经验,这个错误是由什么引起的?how come this stupid question?
XEmacs Shell 问题怎么更改一些系统命令的路径,非管理员? 如gcc等.
如何实现下列功能?.cshrc?.login?.profile?
如何改变CLASSPATH?[转载] using ssh in tcsh script
[转载] About the history如何单步执行shell?
how to change login shell?which shell is best?
login shell and normal shell?shell programming问题:如何同时run多个作业
相关话题的讨论汇总
话题: java话题: classpath话题: home话题: export话题: path