The GNU Linear Programming Kit (GLPK) package supplies a solver for large scale linear programming (LP) and mixed integer programming (MIP). The GLPK project is hosted at http://www.gnu.org/software/glpk.

It has two mailing lists:

To subscribe to one of these lists, please, send an empty mail with a Subject: header line of just "subscribe" to the list.

GLPK provides a library written in C and a standalone solver.

The source code provided at ftp://gnu.ftp.org/gnu/glpk/ contains the documentation of the library in file doc/glpk.pdf.

The Java platform provides the Java Native Interface (JNI) to integrate non-Java language libraries into Java applications.

Project GLPK for Java delivers a Java Binding for GLPK. It is hosted at http://glpk-java.sourceforge.net/.

To report problems and suggestions concerning GLPK for Java, please, send an email to the author at xypron.glpk@gmx.de.


The source files of GLPK for Java can be downloaded from http://sourceforge.net/projects/glpk-java/

GLPK and GLPK for Java precompiled binaries for Windows are available at http://sourceforge.net/projects/winglpk/

Debian and Ubuntu binaries are included in package libglpk-java. For installation use the following command:

sudo apt-get install libglpk-java


GLPK for Java glpk-java is designed for

  • GLPK 4.57 and * OpenJDK 1.6 or higher

On Windows the GLPK version number is hard coded in the dll name. On Linux building and using with other GLPK versions should succeed.


For using this library in your Maven project enter the following repository and dependency in your pom.xml:

            <name>Xypron Release</name>


The artifact does not include the binary libraries, which have to be installed separately.

When testing with Maven it may be necessary to indicate the installation path of the GLPK for Java shared library (.so or .dll).

mvn clean install -DargLine='-Djava.library.path=/usr/local/lib/jni:/usr/lib/jni'