[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] [Fwd: Struggling to link GLPK with java]

From: Heinrich Schuchardt
Subject: Re: [Help-glpk] [Fwd: Struggling to link GLPK with java]
Date: Thu, 27 Jun 2013 21:39:03 +0200 (CEST)

Hello David,

your mail had to be forwarded manually because you are not subscribed to the 
list, see

If you download GLPK for Windows from
it includes all files needed.

The DLLs and the jar-files for GLPK and GLPK for Java are in directories 
glpk-4.51/w32 and glpk-4.51/w64.

Which DLLs you want to use depends on whether you are using the 64bit or the 
32bit Java runtime. If unsure run

class Info {
  public static void main(String[] arg) {
    String bits = null;
    bits = System.getProperty("");
    if (bits == null) {
      bits = System.getProperty("");
    System.out.println( "Java is " + bits + "bit.");

If you still cannot get it running, please, send me the console in- and output.

Best regards

Heinrich Schuchardt

> -------- Forwarded Message --------

> To: address@hidden <address@hidden>
> Subject: Struggling to link GLPK with java
> Date: Thu, 27 Jun 2013 15:21:21 +0000
> Hi,
> I’m having a catalogue of problems trying to get a java file to call
> GLPK’s solver. I’m on a Windows 7 machine, with GLPK 4.47 installed and
> working, and JDK SE 7 doing the same.
> Working through the ‘GNU Linear Programming Kit Java Binding’
> documentation, I’ve got so far as the trivial example (section 2.2.1)
> and then hit all kinds of errors when trying to compile. My command
> prompt output is attached.
> The line set CLASSPATH= … seems to be my problem. I’ve tried typing this
> into the command prompt but the file glpk-java.jar does not seem to
> exist. I’ve tried to install libglpk-java-1.0.29.tar.gz from
>, but hit more brick
> walls when the trying to run the extracted file
> Build_JNI_with_VC10_DLL.bat.
> I’d be grateful for any advice at all. I haven’t got a clue what I’m
> doing.
> Regards,
> Dave Piper

reply via email to

[Prev in Thread] Current Thread [Next in Thread]