help-glpk
[Top][All Lists]
Advanced

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

[Help-glpk] Java Wrapper for GLPK


From: technical forestry services
Subject: [Help-glpk] Java Wrapper for GLPK
Date: Sun, 21 Sep 2014 09:32:09 +1200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1

Hello

I am encountering the following linker error when attempting to use GLPK via a Java wrapper.

The dynamic link library for GLPK for Java could not be loaded.
Consider using
java -Djava.library.path=
The current value of system property java.library.path is:
C:\Program Files\GLPK\winglpk-4.55\glpk-4.55\w64
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files\GLPK\winglpk-4.55\glpk-4.55\w64\glpk_4_55_java.dll: Can't find dependent libraries
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1939)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1864)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1854)
    at java.lang.Runtime.loadLibrary0(Runtime.java:845)
    at java.lang.System.loadLibrary(System.java:1084)
    at org.gnu.glpk.GLPKJNI.<clinit>(GLPKJNI.java:24)
    at org.gnu.glpk.GLPK.glp_create_prob(GLPK.java:222)
    at org.GMPL.Gmpl.solve(Gmpl.java:44)
    at org.user.UserMain.main(UserMain.java:85)

The error arises from  my call to glp_create_prob().

I am using Eclipse and have set the JNI Java library path to the path indicated above :
C:\Program Files\GLPK\winglpk-4.55\glpk-4.55\w64

Appreciate your help.

Many thanks.

LRB



This email is free from viruses and malware because avast! Antivirus protection is active.



reply via email to

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