Luis Quesada wrote:
I have installed the last versions of Gecode and GecodeJ successfully. I am able to run the GecodeJ examples without any problem.

Ok, great!

I would like to use GecodeJ from Eclipse. As far as I understand, GecodeJ.jar is installed in my system's directory for Java extensions ( /usr/lib/j2sdk1.5-sun/jre/lib/ext/GecodeJ.jar), so that I can import Gecode/J packages without setting the class path.

Right.

However, I am getting the following error *when using Eclipse*:

=======
Gecode native code library failed to load.
java.lang.UnsatisfiedLinkError: no gecodej in java.library.path
=======

I guess the gecodej in the error is referring to the GecodeJ.jar above mentioned. However, I am not that familiar with Eclipse. Could you help me with this, please?

The error is not referring to GecodeJ.jar, but to libgecodej.so. It should be installed in the Java extension directory, too.

In fact, the error means that GecodeJ.jar has been found, so that path seems to be fine. It may be necessary to set the property java.library.path somewhere in the Eclipse settings to wherever the .so is installed.

Cheers,
        Guido



--
Guido Tack
Programming Systems Lab, Saarland University, Germany
http://www.ps.uni-sb.de/~tack



_______________________________________________
Gecode users mailing list
[EMAIL PROTECTED]
https://www.gecode.org/mailman/listinfo/gecode-users

Reply via email to