[Ipopt] question about JIPOPT

Stefan Vigerske stefan at math.hu-berlin.de
Wed Apr 24 19:01:19 EDT 2013


Hi,

you try to use a 32bit build of Ipopt with a 64bit Java.

Try rebuilding Ipopt after doing
   ./configure ADD_CFLAGS=-m64 ADD_CXXFLAGS=-m64 ADD_FFLAGS=-m64

Stefan

On 04/24/2013 09:35 PM, m khoshbakht wrote:
>>
>
> 	
> 	
> 	
> 	
>
>
> 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.
>
>
>
>
>
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/ipopt
>



More information about the Ipopt mailing list