I'm trying to compile a java source file that uses two jar files (trove and apache commons collections) via commands similar to the following
javac -cp ~/.m2/repository/gnu/trove/trove/3.0.0/trove-3.0.0.jar:~/git-workspace/grid/libs/commons-collections-3.2.1.jar $(find . -name TimeJavaCode.java)
In the above case, the commons code is not successfully included and there is a compile error where I'm using the commons library. If I reverse the order of the imports, then there are compile errors where I'm using trove. I've tried exporting to a variable as well as single and double quoting the cp string to no avail (in such cases none of the exports succeed, and there are compile errors for both trove and commons).
I've already looked at the following previous questions:
Setting multiple jars in java classpath
Using multiple .jar with javac
What is the correct way to include two jars?