[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] [Fwd: GLPK exception]
From: |
Heinrich Schuchardt |
Subject: |
Re: [Help-glpk] [Fwd: GLPK exception] |
Date: |
Tue, 14 Jul 2015 02:30:15 +0200 |
Hello Roberto,
your mail had to be forwarded manually because you are not subscribed to the
GLPK help list, see https://lists.gnu.org/mailman/listinfo/help-glpk.
Looking at the output you provied it seems that you have a mismatch between the
version of the Jar containing class GLPKJNI and the loaded JNI-DLL.
Could it be that you installed different versions of GLPK for Java and did not
properly uninstall the first installations?
For further analysis the following information will be needed:
Operating system
Version of GLPK
Version of GLPK for Java
The parameters with which Java is executed.
The classpath you specified in the Intelij IDEA IDE.
The value of java.library.path as returned by
System.getProperty("java.library.path").
The value of the PATH environment variable.
The installation paths of the GLPK for Java DLL and the GLPK for Java jar
archive.
http://stackoverflow.com/questions/19308010/how-to-set-the-java-library-path-in-intellij-idea
shows how to specify java.library.path.
Best regards
Heinrich Schuchardt
http://www.xypron.de
> -------- Forwarded Message --------
> From: Roberto Trunfio
> To: address@hidden
> Cc: address@hidden
> Subject: GLPK exception
> Date: Mon, 13 Jul 2015 22:40:04 +0200
>
> Dear Mantainer,
>
>
> This is Roberto, from Berlin. I work as software engineer for Zalando
> SE. I like to experiment open source library since we make a deep use of
> theem, and I was interested in GLPK. I think it may be used to solve
> some small optimization problems (e.g. assignment problems), but
> strongly depends on its performanc.
>
>
> I'm not sure that I can address this kind of issue to you, but I'm
> trying to run the examples from GLPK and I often get the following
> exeption:
>
>
> Exception in thread "main"
> java.lang.UnsatisfiedLinkError: org.gnu.glpk.GLPKJNI.GLP_BF_LUF_get()I
> at org.gnu.glpk.GLPKJNI.GLP_BF_LUF_get(Native Method)
> at org.gnu.glpk.GLPKConstants.<clinit>(GLPKConstants.java:56)
> at Lp.main(Lp.java:38)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:483)
> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
>
>
> Any idea? Am I doing something wrong?
>
>
> Best
> Roberto