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?

2 Answers 2

3

Figured it out, needed to add /usr/share/java/commons-cli.jar to $CLASSPATH.

Sign up to request clarification or add additional context in comments.

Comments

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.