Your problem is discussed:
http://stackoverflow.com/questions/1528148/swig-pointers-and-java-arrays
Two suggestions:
use carrays.i
write a wrapper.
IAJAAR does the latter, see
http://en.wikibooks.org/wiki/GLPK/IAJAAR.H_project or download:
Hello,
I am using glpk-java to solve a network flow LP using the simplex solver
(smcp). The solver has solved a few instances correctly, but not all (even
simple ones).
My belief is that one of the constraints I am building is not getting input
correctly. The problem is, I do not know how to