help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] NoSuchMethodError


From: Heinrich Schuchardt
Subject: Re: [Help-glpk] NoSuchMethodError
Date: Thu, 23 Jul 2015 00:30:09 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0

Hello Jeremy,

> Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError:
> org.gnu.glpk.GLPK.init_glpk()
You cut of the call stack from the output.
Please, analyze the call stack to identify the calling method.

GLPK 4.47 and the matching GLPK for Java 1.0.18 did not have any method
init_glpk(). Could this be a method that once was a part of your user code?

The current version of GLPK is 4.55.
The current version of GLPK for Java is 1.1.0.

Ubuntu Vivid (= 15.04) provides packages
libglpk-java (1.0.37) and
libglpk36 (4.55-1).

I suggest you start by cleaning up your system.
Remove your outdated local GLPK and GLPK for Java installations.
Probably the relevant files are in
/usr/local/bin
/usr/local/include
/usr/local/lib
/usr/local/lib/jni
/usr/local/share/java

After cleaning up either install the appropriate Ubuntu packages or you
download glpk-4.55 and GLPK for Java 1.1.0 and build and install from
source.

Best regards

Heinrich Schucharddt


On 22.07.2015 23:09, Jeremy Chacon wrote:
> Hello,
> 
> I'm trying to use a java program that uses glpk-java to run glpk. When I
> run the program, I get a NoSuchMethodError error:
> 
> Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError:
> org.gnu.glpk.GLPK.init_glpk()
> 
> I know that glpk and glpk-java are installed, because if I run glpsol
> --version, it tells me 4.52. Also, if I do the "hello world"-type java
> program (described here https://en.wikibooks.org/wiki/GLPK/Java) it also
> runs and still tells me 4.52.
> 
> I'm using Ubuntu 15.04.
> 
> I've messed with many things in my .bashrc and in the script that starts
> up the java program, to no avail.
> 
> My only current thought is that there is a version issue:  the program
> I'm using was written using glpk version 4.47, whereas I installed 4.52.
> 
> 
> Is there no method called init_glpk() in version 4.52? Or is there any
> other hint any of you might have?
> 
> Thanks in advance for any suggestions!
> 
> Jeremy



reply via email to

[Prev in Thread] Current Thread [Next in Thread]