[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] GLPK-Java JNI in Mac OS X 10.5.8
From: |
glpk xypron |
Subject: |
Re: [Help-glpk] GLPK-Java JNI in Mac OS X 10.5.8 |
Date: |
Tue, 31 Jan 2012 07:34:26 +0100 |
Hello Ricardo,
java.lang.UnsatisfiedLinkError means that the native library *.dylib either
could not be loaded or did not contain the C function needed.
It is necessary that the *.dylib files are in the library search path. For
glpk_java.dylib this can be achieved by setting java.library.path when invoking
the Java runtime.
When compling you will have run
./configure
make
make check
Did you get the same error when executing "make check"?
By the way did you have to make any changes to the configuration script to get
it running on OX X? I do not have access to an Apple myself.
Best regards
Xypron
-------- Original-Nachricht --------
> Datum: Mon, 30 Jan 2012 11:41:36 +0100
> Betreff: [Help-glpk] GLPK-Java JNI in Mac OS X 10.5.8
> Dear all,
> I've some problems while testing the glpk-java for MacOS X 10.5.8.
>
> I'm working with GLPK-4.47 and libglpk-java-1.0.19. I've downloaded
> the latter and properly compile it for x86_64, to avoid the 'match-o,
> but wrong architecture' error issue. Now, the library is compiled for
> 64 bits, and seems to be no problem when being loaded by Java VM.
>
> The problem arises me when I try to invoke GLPK from Java:
> Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError:
> org.gnu.glpk.GLPKJNI.glp_create_prob()J
> at org.gnu.glpk.GLPKJNI.glp_create_prob(Native Method)
> at org.gnu.glpk.GLPK.glp_create_prob(GLPK.java:65)
> at net.sf.javailp.SolverGLPK.solve(SolverGLPK.java:115)
> (...)
>
> It seems such a method is not defined in the JAR file, but I'm using
> the glpk-java.jar and the JNI dynamic library, recently compiled from
> libglpk-java-1.0.19 sources. Am I missing something? Any idea?
>
> It's a pity that the tool I've developed is unavailable to run on
> MacOS by this error :'(, it would be wonderful if you guys have some
> idea to fix this!
>
>
> Thanks in advance, regards
> --
> Ricardo J. RodrÃguez
> _______________________________________________
> Help-glpk mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-glpk
--
Follow me at http://twitter.com/#!/xypron
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de