help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Java Wrapper for GLPK


From: Heinrich Schuchardt
Subject: Re: [Help-glpk] Java Wrapper for GLPK
Date: Sun, 21 Sep 2014 03:03:11 +0200

>> Can't find dependent libraries

This indicates that the GLPK library glpk_4_55.dll is not in the search path for binaries.


Best regards

Heinrich Schuchardt

http://www.xypron.de



technical forestry services <address@hidden>schrieb:
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.


_______________________________________________ Help-glpk mailing list address@hidden https://lists.gnu.org/mailman/listinfo/help-glpk

reply via email to

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