[Ipopt] question about JIPOPT

m khoshbakht m.khoshbakht at modares.ac.ir
Wed Apr 24 15:35:02 EDT 2013


​


	
	
	
	


Hi,



thanks
for your reply,

I want to solve a NLP and use that's results in a Java
project so I use Jipopt, I followed this steps:

create
a Java project using eclipse

add
Jipopt.jar file to that

create
a “lib” folder and copy the DLL file there

but
when I run that (as a Java application) see this error:

Exception
in thread "main" java.lang.UnsatisfiedLinkError:
/home/m12345/workspace_2jiopot/jipopt2/lib/libjipopt.so:
/home/m12345/workspace_2jiopot/jipopt2/lib/libjipopt.so: wrong ELF
class: ELFCLASS32 (Possible cause: architecture word width mismatch)

	at
java.lang.ClassLoader$NativeLibrary.load(Native
Method)

	at
java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1939)

	at
java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1864)

	at
java.lang.ClassLoader.loadLibrary(ClassLoader.java:1825)

	at
java.lang.Runtime.load0(Runtime.java:792)

	at
java.lang.System.load(System.java:1059)

	at
org.coinor.Ipopt.<init>(Ipopt.java:190)

	at
org.coinor.Ipopt.<init>(Ipopt.java:175)

	at
org.coinor.examples.HS071.<init>(HS071.java:47)

	at
org.coinor.examples.HS071.main(HS071.java:35)





my
OS is ubuntu Linux 12.10 (64bit), is my OS version because of this
error?

Can
I use that DLL file? Do I have to compile the C++ source code? 


Please
guide me, Thanks for your time.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/ipopt/attachments/20130425/1d8a9b8f/attachment.html>


More information about the Ipopt mailing list