help-glpk
[Top][All Lists]
Advanced

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

[Help-glpk] java.lang.Exception: no glpk_java in java.library.path


From: Sana Jawad
Subject: [Help-glpk] java.lang.Exception: no glpk_java in java.library.path
Date: Tue, 6 Apr 2010 00:40:39 -0700

Hi,
 
I am trying to call a model written in MathProg using GLPK in java in Ubuntu.
 
My code is as follows:
 
 

try

{

System.loadLibrary(

"glpk_java");

}

catch(UnsatisfiedLinkError e)

{

Exception e2=

new Exception(e1.getMessage() +" JAVA LIBRARAY Path:" +System.getProperty("java.library.path"));

e2.setStackTrace(e1.getStackTrace());

e2.printStackTrace();

throw e2;

}


  I am getting this exception when I execute this code:
 
java.lang.Exception: no glpk_java in java.library.path
 
Class Path:/usr/lib/jvm/java-6-openjdk/jre/lib/i386/client:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/jvm/java-6-openjdk/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1698)
        at java.lang.Runtime.loadLibrary0(Runtime.java:840)
        at java.lang.System.loadLibrary(System.java:1047)


I have downloaded glpk from http://glpk-java.sourceforge.net/#installation and followed all the instructions in Install files. I have copied libglpk_java.so file in usr/lib folder as well (As this path is in the java.library.path ). But nothing seems to make a difference.
 
Can anyone please help me.
 
Thanks in advance,
 
Sana

reply via email to

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