g******a 发帖数: 730 | 1 Linux/Unix下如何改变CLASSPATH啊?
这个再什么文件里?
//bow |
f********h 发帖数: 149 | 2 depends the shell you use.
If you use bash, put the following in .bashrc
export CLASSPATH=what_ever_you_want
【在 g******a 的大作中提到】 : Linux/Unix下如何改变CLASSPATH啊? : 这个再什么文件里? : //bow
|
r*****s 发帖数: 985 | 3 csh/tcsh:
setenv CLSSPATH yourpath
不过开发的时候最好不要在自己的环境里设CLASSPATH,很容易
后来就忘记加了,结果别人用起来classnotfound。。。
【在 f********h 的大作中提到】 : depends the shell you use. : If you use bash, put the following in .bashrc : export CLASSPATH=what_ever_you_want
|
x*********g 发帖数: 11508 | 4 nod nod
如果是一个JAR文件需要用到CLASSPATH, 可以在manifest文件里设置Class-Path, 这样
就一直在你的JAR里,不会忘记(或:不需要记起〕。
【在 r*****s 的大作中提到】 : csh/tcsh: : setenv CLSSPATH yourpath : 不过开发的时候最好不要在自己的环境里设CLASSPATH,很容易 : 后来就忘记加了,结果别人用起来classnotfound。。。
|
g******a 发帖数: 730 | 5 多谢大家
我还有个问题,如何判断出哪个是Main_class?
我下载的manifest文件里Main_class:是空的
我如何知道那个是main_class并把他写在manifest里呢?
//bow
【在 x*********g 的大作中提到】 : nod nod : 如果是一个JAR文件需要用到CLASSPATH, 可以在manifest文件里设置Class-Path, 这样 : 就一直在你的JAR里,不会忘记(或:不需要记起〕。
|
w**n 发帖数: 88 | 6 Is there a "Name" field ?
【在 g******a 的大作中提到】 : 多谢大家 : 我还有个问题,如何判断出哪个是Main_class? : 我下载的manifest文件里Main_class:是空的 : 我如何知道那个是main_class并把他写在manifest里呢? : //bow
|