help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Configuration problem to use GLPK for Java on windows


From: Adrien Bellanger
Subject: Re: [Help-glpk] Configuration problem to use GLPK for Java on windows
Date: Wed, 25 Sep 2013 12:12:04 +0000

Hello Heinrich,

Thanks a lot for your rapidity,

Check_jmi.bat was firstly not running because the JAVA_HOME system variable was 
set to the JRE instead of the JDK.

After the modification check_jni.bat works well, but the error still occur when 
I call my project.
According to System.getProperty("os.arch") I use an amd64 version.

Thanks,
Adrien

-----Ursprüngliche Nachricht-----
Von: Heinrich Schuchardt [mailto:address@hidden 
Gesendet: Mittwoch, 25. September 2013 13:33
An: Adrien Bellanger; Help Glpk
Betreff: Re: [Help-glpk] Configuration problem to use GLPK for Java on windows

Hello Adrien,

Does this work ( it should run some test cases):
open cmd.exe
cd F:\Solvers\glpk-4.52\w64
check_jni.bat

Is Eclipse calling a 64 bit Java runtime?

Which value do you get for
System.getProperty("os.arch")

Best regards

Heinrich Schuchardt

http://www.xypron.de


On 25.09.13 at 11:04, Adrien Bellanger wrote:

> Hi,
> 
> 
> 
> I tried since two days to run my first project using GLPK for Java. I doesn't 
> work due to a problem during the dynamic library linking. I got the following 
> error message:
> 
> 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:
> 
> F:\Solvers\glpk-4.52\w64"
> 
> 
> 
> I run that in Eclipse with the following option: 
> Windows->preferences->java->Installed JREs
> 
> For the only JRE I write in Default VM arguments: 
> -Djava.library.path="F:\Solvers\glpk-4.52\w64\"
> 
> 
> 
> My .classpath:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> 
> <classpath>
> 
>                 <classpathentry kind="src" path="src"/>
> 
>                 <classpathentry kind="con" 
> path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
> 
> <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
> 
>                 <classpathentry kind="lib" 
> path="F:/Solvers/glpk-4.52/w64/glpk-java.jar" 
> sourcepath="F:/Solvers/glpk-4.52/w64/glpk-java-sources.jar">
> 
>                                 <attributes>
> 
>                                                 <attribute 
> name="javadoc_location" 
> value="jar:file:/F:/Solvers/glpk-4.52/w64/glpk-java-javadoc.jar!/"/>
> 
>                                 </attributes>
> 
>                 </classpathentry>
> 
>                 <classpathentry kind="output" path="bin"/>
> 
> </classpath>
> 
> 
> 
> 
> 
> And the content of F:\Solvers\glpk-4.52\w64
> 
> 
> 
> 18.09.2013  18:30    <DIR>          .
> 
> 18.09.2013  18:30    <DIR>          ..
> 
> 18.07.2013  10:00               337 Build_GLPK_with_VC10.bat
> 
> 18.07.2013  10:00               349 Build_GLPK_with_VC10_DLL.bat
> 
> 18.07.2013  10:00               335 Build_GLPK_with_VC9.bat
> 
> 18.07.2013  10:00               347 Build_GLPK_with_VC9_DLL.bat
> 
> 14.06.2013  23:22             1.594 Build_JNI_with_VC10_DLL.bat
> 
> 07.05.2013  21:40             2.121 check_jni.bat
> 
> 18.07.2013  10:00               308 config_VC
> 
> 18.07.2013  22:44           195.332 glpk-java-javadoc.jar
> 
> 18.07.2013  22:44            53.602 glpk-java-sources.jar
> 
> 18.07.2013  22:44            44.877 glpk-java.jar
> 
> 18.07.2013  10:00             3.437 glpk_4_52.def
> 
> 18.07.2013  22:44         1.524.224 glpk_4_52.dll
> 
> 18.07.2013  22:44            26.676 glpk_4_52.exp
> 
> 18.07.2013  22:44            44.720 glpk_4_52.lib
> 
> 18.07.2013  22:44         3.582.976 glpk_4_52.pdb
> 
> 18.07.2013  22:44           348.672 glpk_4_52_java.dll
> 
> 18.07.2013  22:44           126.019 glpk_4_52_java.exp
> 
> 18.07.2013  22:44           213.276 glpk_4_52_java.lib
> 
> 18.07.2013  22:44         1.428.480 glpk_4_52_java.pdb
> 
> 18.07.2013  21:38             1.042 glpk_java_dll.rc
> 
> 18.07.2013  22:44            75.264 glpsol.exe
> 
> 18.07.2013  22:44           560.128 glpsol.pdb
> 
> 18.07.2013  21:38               454 Makefile_JNI_VC_DLL
> 
> 18.07.2013  10:00             4.295 makefile_VC
> 
> 18.07.2013  22:43             4.511 makefile_VC_DLL
> 
> 18.07.2013  10:00               951 readme.txt
> 
> 18.07.2013  22:44           200.704 vc100.pdb
> 
>               27 Datei(en),      8.445.031 Bytes
> 
>                2 Verzeichnis(se), 48.363.343.872 Bytes frei
> 
> 
> 
> And the Java version:
> 
> F:\>java -version
> 
> java version "1.7.0_40"
> 
> Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
> 
> Java HotSpot(TM) 64-Bit Server VM (build 24.0-b56, mixed mode)
> 
> 
> 
> 
> 
> Has anybody an Idea of what can the problem be?
> 
> 
> 
> I also tried with w32 but that was not better.
> 
> Thanks,
> 
> 
> 
> 
> 
> Best Regards,
> 
> Adrien Bellanger

reply via email to

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