<div dir="ltr">Dear Alberto,<div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">A "NoClassDefFoundError" meas that the class </span><span style="font-family:arial,sans-serif;font-size:13px">org.coinor.Ipopt</span><span style="font-family:arial,sans-serif;font-size:13px"> is not on the path of your project. You are forgetting to add the jar file or the class files on the path of your project. If you are using Eclipse this should be reported during the compilation step and not only at run-time.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div style><span style="font-family:arial,sans-serif;font-size:13px">Regards.</span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, Jan 11, 2013 at 1:39 PM, Alberto Calzada <span dir="ltr"><<a href="mailto:albertocalsa@gmail.com" target="_blank">albertocalsa@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hello Edson,<div><br></div><div>First of all, thank you very much for your prompt reply. I am sorry for the delay in answering you, but I have been trying several possible solutions and I still have the same problem.</div>
<div><br></div><div>As you adviced me, I tried to use the alternative constructor, but I always keep getting the same NoClassDefFoundError in org/coinor/Ipopt. I don't really know how to approach this problem now, so any possible solution would be more than welcome.</div>
<div><br></div><div>Many thanks,</div><div><br></div><div>Alberto</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 30 December 2012 14:26, Edson Cordeiro do Valle <span dir="ltr"><<a href="mailto:edsoncv@enq.ufrgs.br" target="_blank">edsoncv@enq.ufrgs.br</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> Hello Alberto<br>
<br>
If you run HS71 without any issue, that can be a problem of your search path.<br>
Notice the "alternative" ipopt constructor (Ipopt.java):<br>
public Ipopt(String path, String DLL){<br>
// Loads the library<br>
File file = new File(path, System.mapLibraryName(DLL));<br>
System.load(file.<u></u>getAbsolutePath());<br>
}<br>
and<br>
public static final String DLLNAME = "jipopt";<br>
/** The relative path where the native DLL is found */<br>
public static final String DLLPATH = "lib";<br>
so, you need to use this second constructor and send the jipopt.dll path appropriatelly. Or create a "lib" folder in your project and place the .dll there. This is probably the source of your problem.<br>
<br>
Your second problem (get the final values) you can get it with the "getState()" method.<br>
<br>
Regards<br>
Edson<br>
<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Send Ipopt mailing list submissions to<br>
<a href="mailto:ipopt@list.coin-or.org" target="_blank">ipopt@list.coin-or.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://list.coin-or.org/mailman/listinfo/ipopt" target="_blank">http://list.coin-or.org/<u></u>mailman/listinfo/ipopt</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:ipopt-request@list.coin-or.org" target="_blank">ipopt-request@list.coin-or.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:ipopt-owner@list.coin-or.org" target="_blank">ipopt-owner@list.coin-or.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Ipopt digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Some issues about JIpopt usage (Alberto Calzada)<br>
<br>
<br>
------------------------------<u></u>------------------------------<u></u>----------<br>
<br>
Message: 1<br>
Date: Fri, 28 Dec 2012 15:20:33 +0000<br>
From: Alberto Calzada <<a href="mailto:albertocalsa@gmail.com" target="_blank">albertocalsa@gmail.com</a>><br>
To: <a href="mailto:Ipopt@list.coin-or.org" target="_blank">Ipopt@list.coin-or.org</a><br>
Subject: [Ipopt] Some issues about JIpopt usage<br>
Message-ID:<br>
<<a href="mailto:CAOtPDdA-X2fazQ8vqvGSnkPBeWw43RByavejpsoCjtu6AedEyg@mail.gmail.com" target="_blank">CAOtPDdA-<u></u>X2fazQ8vqvGSnkPBeWw43RByavejps<u></u>oCjtu6AedEyg@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Dear List,<br>
<br>
First of all, many thanks for providing this great tool to solve non-linear<br>
constrained optimisation problems in Java. I have found the use of this<br>
interface easy and even enjoyable! Good job!<br>
<br>
However, I have found a couple of issues...<br>
<br>
The first one: I am working in a big project Eclipse and I really don't<br>
know why (even if I execute the hs071.java class without any issue at all)<br>
I can't execute my class, which has been already implemented!<br>
I keep on having the runtime error "java.lang.<u></u>NoClassDefFoundError:<br>
org/coinor/Ipopt". I have checked it and both the DLL file (for Win32) and<br>
also the JIpopt JAR are included in the JAR of my project so I don't know<br>
what can I do! I have cleaned my project, restated Eclipse and I always get<br>
this error... Any ideas?<br>
I am working on a Windows7 64-bits computer. Could that be the problem?<br>
<br>
My second issue is regarding how can I get the optimal solution for my<br>
problem variables retrieved by JIpopt. I need to assign those values to my<br>
decision making scheme, but I haven't found any method in the Ipopt class<br>
or in the hs071 example.<br>
<br>
I hope to hear from you soon,<br>
Many thanks,<br>
Best regards,<br>
<br>
Albe<br>
<br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
Ipopt mailing list<br>
<a href="mailto:Ipopt@list.coin-or.org" target="_blank">Ipopt@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/ipopt" target="_blank">http://list.coin-or.org/<u></u>mailman/listinfo/ipopt</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><i><font face="arial, helvetica, sans-serif" color="#666666">-- <br></font></i><div><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
<i><font face="arial, helvetica, sans-serif" color="#666666"><span style="background-image:initial">Mr Alberto Calzada<br>Full-time PhD Candidate</span><u></u><u></u></font></i></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px">
<i><font face="arial, helvetica, sans-serif" color="#666666"><span style="background-image:initial">Room 16J25</span> </font></i>
</p></div><div><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><i><font face="arial, helvetica, sans-serif" color="#666666"><span style="background-image:initial">School of Computing and Mathematics<br>
Faculty of Computing and Engineering</span></font></i></p></div><div><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><i><font face="arial, helvetica, sans-serif" color="#666666"><span style="background-image:initial">University of Ulster at Jordanstown Campus<br>
Northern Ireland, UK<br>Email: </span><span style="background-repeat:initial initial;background-image:initial"><a href="mailto:Calzada-A@email.ulster.ac.uk" target="_blank">Calzada-A@email.ulster.ac.uk</a></span></font></i></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><i><font face="arial, helvetica, sans-serif" color="#666666"><span style="background-image:initial">Tel: </span>
<span style><a href="tel:%2B44%2028%2090361114" value="+442890361114" target="_blank">+44 28 90361114</a></span> </font></i></p></div>
</div>
<br>_______________________________________________<br>
Ipopt mailing list<br>
<a href="mailto:Ipopt@list.coin-or.org">Ipopt@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/ipopt" target="_blank">http://list.coin-or.org/mailman/listinfo/ipopt</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Prof. Rafael de Pelegrini Soares, D.Sc<br>Chemical Engineering Department - UFRGS<br><a href="mailto:rafael@enq.ufrgs.br">rafael@enq.ufrgs.br</a>, <a href="mailto:rafael.enq@gmail.com">rafael.enq@gmail.com</a><br>
office: +55 51 3308 3528<br><br>
</div>