Hi,
Should usr/include contain a copy of glpk.h ? I don't have one. Should I
copy the glpk.h to usr/include or should I install another time ?

I installed glpk4.50 in the home directory. But, glpsol --version shows
 "GLPSOL: GLPK LP/MIP Solver, v4.50"
-Kazi



On Mon, Jun 10, 2013 at 3:26 AM, <[email protected]> wrote:

> Hello Kazi,
>
> glpk-4.50/src/glpk.h has no constyant LPX_LP. You obviously use a GLPK for
> Java built against an older include file.
>
> Check directory /usr/include.
>
> Best regards
>
> Heinrich Schuchardt
>
> http://www.xypron.de
>
> Am 09.06.13 um 21:54 schrieb Kazi Moyeen ul Huq
>
> > Hi,
> >
> > What is this Timer-0 error ?
> >
> > Thanks
> >
> > Kazi.
> >
> >
> >
> > ~/application/state-optimizer$ java
> -Djava.library.path=/usr/local/lib/jni/
> >
> > -classpath /usr/local/share/java/glpk-java.jar -jar st.jar
> >
> >
> >
> > Problem created ...test_MPC3
> >
> >
> >
> > *Exception in thread "Timer-0" java.lang.UnsatisfiedLinkError:
> >
> > org.gnu.glpk.GLPKJNI.LPX_LP_get()I*
> >
> > at org.gnu.glpk.GLPKJNI.LPX_LP_get(Native Method)
> >
> >  at org.gnu.glpk.GLPKConstants.<clinit>(GLPKConstants.java:122)
> >
> > at
> >
> >
> org.totalgrid.reef.examples.stateoptimizer.DESDAlgorithm.optimize(DESDAlgorithm.java:145)
> >
> >  at
> >
> >
> org.totalgrid.reef.examples.stateoptimizer.StateOptimizerManager$1.run(StateOptimizerManager.java:65)
> >
> > at java.util.TimerThread.mainLoop(Timer.java:534)
> >
> >  at java.util.TimerThread.run(Timer.java:484)
> >
> >
> >
> >
> >
> >
> >
> > -Kazi
> >
> >
> >
> >
> >
> > On Sun, Jun 9, 2013 at 9:46 AM, Heinrich Schuchardt <[email protected]
> >wrote:
> >
> >
> >
> > > On 09.06.2013 15:33, Kazi Moyeen ul Huq wrote:
> >
> > >
> >
> > >> java -Djava.library.path=/usr/lib/**jni -jar st.jar
> >
> > >>
> >
> > >
> >
> > > Hello Kazi,
> >
> > >
> >
> > > the default installation path for GLPK and GLPK for Java is
> >
> > > /usr/local
> >
> > >
> >
> > > If you did not configure with --prefix the command line to execute you
> jar
> >
> > > file should be
> >
> > >
> >
> > > java -Djava.library.path=/usr/**local/lib/jni \
> >
> > >   -classpath /usr/local/share/java/glpk-**java.jar -jar st.jar
> >
> > >
> >
> > > Best regards
> >
> > >
> >
> > > Heinrich Schuchardt
> >
> > >
>
_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to