1

On a Debian system, I installed Commons CLI with apt-get install commons-cli-java, but now I can't figure out how to compile a program with it. I've tried every permutation of setting $CLASSPATH I could think of, but nothing worked. So what is the next step after getting the library installed?

4

2 回答 2

3

想通了,需要添加/usr/share/java/commons-cli.jar到 $CLASSPATH。

于 2011-11-16T04:40:24.603 回答
1

I don't know offhand, but

dpkg -L commons-cli-java

Will show you all the files that the package owns, which should give you a better idea of where you need to look.

the -doc is probably work a look as well.

于 2011-11-16T04:29:50.347 回答