[gecode-users] Using GecodeJ with Eclipse

Luis Quesada l.quesada at 4c.ucc.ie
Thu Apr 5 18:27:31 CEST 2007


Guido Tack wrote:
> Luis Quesada wrote:
>
>> In order to set java.library.path, I did the following:
>>
>> I went to Run-> Run...-> Java Applicaton-> New ->Arguments -> VM 
>> Arguments.  I pasted  "-Djava.library.path=/usr/local/lib/" to the VM 
>> Arguments field.
>
> That seems to be the way to do it.
>
>> However, I am now getting the following problem:
>>
>> Gecode native code library failed to load.
>> java.lang.UnsatisfiedLinkError: /usr/local/lib/libgecodej.so.1.0: 
>> libgecodeint.so.8: cannot open shared object file: No such file or 
>> directory
>
> It means that the Gecode libraries are not on the LD_LIBRARY_PATH. 
> Check where they are installed, and that that path is either in 
> /etc/ld.so.conf (like /usr/lib) or in the LD_LIBRARY_PATH environment 
> variable.
Actually, I had a typo in the definition of LD_LIBRARY_PATH...  
Everything is fine now!
Thanks a lot for your help!
Cheers,
Luis




More information about the gecode-users mailing list