This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Question about compiling .jar files?
Dan Bolser writes:
>
> Hi I am new to gcc / gcj.
>
> I am trying to compile jung-1.5.jar, which requires colt-1.2.0.zip. I
> (think) I can compile colt-1.2.0.zip without a problem, but I can't seem
> to satisfy jung-1.5.jar to the existence of colt-1.2.0.zip.
>
> I am not sure what I should / should not be doing.
>
> I get messages like this...
>
> edu/uci/ics/jung/algorithms/GraphMatrixOperations.java: In class
> `edu.uci.ics.jung.algorithms.GraphMatrixOperations':
> edu/uci/ics/jung/algorithms/GraphMatrixOperations.java: In method
> `edu.uci.ics.jung.algorithms.GraphMatrixOperations.matrixToGraph(cern.colt.matrix.DoubleMatrix2D,java.lang.String)':
> edu/uci/ics/jung/algorithms/GraphMatrixOperations.java:108: error: cannot
> find file for class cern.colt.matrix.DoubleMatrix2D
> edu/uci/ics/jung/algorithms/GraphMatrixOperations.java:108: error: cannot
> find file for class cern.colt.matrix.DoubleMatrix2D
>
> when I try
>
> gcj -c jung-1.5.jar -o jung-1.5.o
>
>
> I am trying things like...
>
> gcj -c jung-1.5.jar -o jung-1.5.o --classpath=colt-1.2.0.zip
>
> But to no avail.
What is inside colt-1.2.0.zip? class files, source files?
Somewhow you need colt-1.2.0.jar, which you can create with "jar cf".
Andrew.