Hi,
The 1 & 2 issue in the previous mail is now solved.
But I still have the 3rd problem. For some reason it can't load the dynamic
library during runtime. Any suggestion for that ?

I'm using the following command to run the executable jar file ( it works
in the latest version of Ubuntu)

java -Djava.library.path=/usr/lib/jni -jar st.jar

Thanks
Kazi

------------------------------------------------------------------------------------------------------
The dynamic link library for GLPK for Java could not be loaded.
Consider using
java -Djava.library.path=
Exception in thread "Timer-0" java.lang.UnsatisfiedLinkError: no glpk_java
in java.library.path
 at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1681)
at java.lang.Runtime.loadLibrary0(Runtime.java:840)
 at java.lang.System.loadLibrary(System.java:1047)
at org.gnu.glpk.GLPK.<clinit>(GLPK.java:20)
at
org.totalgrid.reef.examples.stateoptimizer.DESDAlgorithm.optimize(DESDAlgorithm.java:138)
 at
org.totalgrid.reef.examples.stateoptimizer.StateOptimizerManager$1.run(StateOptimizerManager.java:65)
at java.util.TimerThread.mainLoop(Timer.java:534)
 at java.util.TimerThread.run(Timer.java:484)



On Sun, Jun 9, 2013 at 3:27 AM, Heinrich Schuchardt <xypron.g...@gmx.de>wrote:

> Hello Kazi,
>
> in the description on
> http://glpk-java.sourceforge.**net/gettingStarted.html<http://glpk-java.sourceforge.net/gettingStarted.html>
> I forgot the following step after installation of GLPK.
>
> sudo ldconfig
>
> Best regards
>
> Heinrich Schuchardt
>
>
> On 09.06.2013 01:23, Kazi Moyeen ul Huq wrote:
>
>> Hi,
>> Looks like I made some progress ! But, I received these 2 messages, when I
>> was installing according to the
>> http://glpk-java.sourceforge.**net/gettingStarted.html<http://glpk-java.sourceforge.net/gettingStarted.html>,
>>  GLPK /"LPK for Java
>> instructions :
>>
>> 1. In the glpk 4.50 installation, after make install (no error msg upto
>> this point) :
>> ~/glpk-4.50$ glpsol --version
>> glpsol: error while loading shared libraries: libglpk.so.35: cannot open
>> shared object file: No such file or directory
>>
>> 2.During "make check" for glpk-java-1.0.28 :
>> The dynamic link library for GLPK for Java could not be loaded. Consider
>> using
>> java -Djava.library.path=
>>
>> 3. when I tried to test run my program, I got the following error :
>> The dynamic link library for GLPK for Java could not be loaded.
>> Consider using
>> java -Djava.library.path=
>> Exception in thread "Timer-0" java.lang.**UnsatisfiedLinkError: no
>> glpk_java
>> in java.library.path
>> at java.lang.ClassLoader.**loadLibrary(ClassLoader.java:**1681)
>>   at java.lang.Runtime.**loadLibrary0(Runtime.java:840)
>> at java.lang.System.loadLibrary(**System.java:1047)
>>   at org.gnu.glpk.GLPK.<clinit>(**GLPK.java:20)
>>                ... ... ...
>>
>> The detailed error messages are attached in the email,
>>
>> Please suggest how I can take care of the dynamic link library error ?
>>
>> Thanks a lot
>> Kazi
>>
>
_______________________________________________
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to