Installing glpk-java on your computer
*************************************

POSIX
=====

Requirements
------------

To install glpk-java you will need to install beforehand
- libtool
- SWIG
- GLPK
- Java Compiler

For Debian and Ubuntu the following packages should be installed
- glpk
- java-gcj-compat-dev 
- libtool
- swig

Unpacking the distribution file
-------------------------------

Copy the distribution file to a working directory.
Check the MD5 checksum with the following command:

        md5sum glpk-java-X.Y.tar.gz

Unpack the archive with the following command:

        tar -xzf glpk-java-X.Y.tar.gz

Now change to the new direcotry glpk-java-X.Y

Configuring the package
-----------------------

Open swig/Makefile in a text editor, e.g. with the following command

        vi swig/Makefile

Adjust the installation path "prefix".

Adjust the include path for glpk.h.

Adjust the version information concerning GLPK.

Save the text file.

On Mac OS X jni.h is in the following path: 

        /System/Library/Frameworks/JavaVM.framework/Headers

On Mac OS X you have to use glibtool instead of libtool.

On Fedora derived systems you may have to explicitly define
/usr/local/lib as a library path with

	export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

Compiling the package
---------------------

To remove all files from prior compiling use the command

       make clean

The package is compiled with the command 

       make

Check the package
-----------------

To check if everything is built correctly use the command

       make check

Install the package
-------------------

To install the package you must be root or a suodoer. As
sudoer use the command

       sudo make install

Windows
=======

Requirements
------------

GLPK
Swig
Windows SDK
Visual c++

Configure the package
---------------------

Change to directory w32 or w64 depending on whether you use
a 32 or 64 bit version of Windows.

Adjust the pathes specified in the batchfile.


Compile the package
-------------------

Execute the batchfile provided.

Install the package
-------------------

Copy the jar file and the dll to your preferred pathes.

