help-glpk
[Top][All Lists]
Advanced

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

[Help-glpk] Problems using glpk from Java


From: Alberto Marin
Subject: [Help-glpk] Problems using glpk from Java
Date: Tue, 4 Oct 2011 22:43:28 +0200

Hello everybody,

I am using GLPK from java and I am having a few problems. I am trying to use the version that comes by default in Ubuntu but the same problems arise with other versions.

I have the jar file, the glpk_java library and libglpk.so library in a directory where all my dependencies are. The classloader finds the jar file and libglpk_java, but it fails to find the libglpk.so that is sitting in the same directory.

the error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/amarin/NetBeansProjects/latest/CaMBio/lib64/Linux/libglpk_java.so.0.31.0: libglpk.so.0: cannot open shared object file: No such file or directory
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1750)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1675)
    at java.lang.Runtime.loadLibrary0(Runtime.java:840)
    at java.lang.System.loadLibrary(System.java:1047)
    at de.mpg.biochem.cambio.tests.testglpk.<clinit>(testglpk.java:26)
Could not find the main class: de.mpg.biochem.cambio.tests.testglpk. Program will exit.
Java Result: 1


This file can only be found if I place it in /usr/lib and nowhere else but I need it in my dependencies dir. (This all becomes even worse if I call glpk from the Netbeans platform...)

 Is it the way the library is packed? I am doing something wrong?

Any help would be appreciated

Thanks,
Alberto

 

reply via email to

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