help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] spx_simplex: problem has no rows/columns


From: xypron
Subject: Re: [Help-glpk] spx_simplex: problem has no rows/columns
Date: Tue, 26 Jan 2010 13:58:50 -0800 (PST)

Hello Sana,

> > I am getting the following error when I try to run the sample code given
> > in Gmpl.java file.
> > "java.lang.UnsatisfiedLinkError: org.gnu.glpk.GLPKJNI.glp_create_prob()"

> I have run the check_jni.bat file and both the test examples are executed
> correctly.

I was able to reproduce the error you reported when I remove the line
System.loadLibrary("glpk_4_42_java"); 
from examples/java/Gmpl.java.

Does this command miss in the program you wrote?

I will add a comment to the next version of doc/glpk-java.pdf to make it
clear
that the dll has to be explicitly loaded.

Best regards

Xypron


Sana Jawad wrote:
> 
> Hello Xypron,
> 
> I have run the check_jni.bat file and both the test examples are executed
> correctly.
> 
> Best Regards,
> Sana
> 
> On Mon, Jan 25, 2010 at 1:29 PM, xypron <address@hidden> wrote:
> 
>>
>> Hello Sana,
>>
>> please, unzip the file downloaded from
>>
>> http://sourceforge.net/projects/winglpk/files/winglpk/GLPK-4.42/winglpk-4.42.zip/download
>> to a new directory.
>>
>> Change to the w32 directory, if you use a 32bit windows (or to w64 when
>> using 64bit Windows.
>> > cd glpk-4.42\w32
>> Execute the installation check
>> > check_jni.bat
>>
>> Are the two examples executed correctly?
>>
>> Best regards
>>
>> Xypron
>>
>>
>>
>>
>>
>> Sana Jawad wrote:
>> >
>> > Thanx alot...I am now using the latest version.
>> >
>> > I am getting the following error when I try to run the sample code
>> given
>> > in
>> > Gmpl.java file.
>> >
>> > "java.lang.UnsatisfiedLinkError:
>> org.gnu.glpk.GLPKJNI.glp_create_prob()"
>> >
>> >
>> >
>> > I have copied both the files glpk_4_42.dll and glpk_4_42_java.dll in
>> > C:\Windows\System32 folder and I have copied in my class path as
>> mentioned
>> > in the glpk-java.pdf file.
>> >
>> > Can anyone please help me.
>> >
>> > Best Regards,
>> > Sana
>> >
>> > On Sat, Jan 23, 2010 at 9:50 PM, Andrew Makhorin <address@hidden> wrote:
>> >
>> >> > spx_simplex: problem has no rows/columns
>> >>
>> >> You are using an obsolete version of the package. In recent versions
>> >> glp_simplex allows the problem object to be empty.
>> >>
>> >>
>> >
>> >
>> > --
>> > Best Regards,
>> >
>>
> 
> _______________________________________________
> Help-glpk mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-glpk
> 
> 

-- 
View this message in context: 
http://old.nabble.com/spx_simplex%3A-problem-has-no-rows-columns-tp27283017p27330498.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.





reply via email to

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