Search code examples
javaguavaguiceowl-api

NoSuchMethodError using OWL API 4.0.x


I downloaded OWL API (4.0.1 and 4.0.2). But it needed plenty of dependencies that are nowhere mentioned. I downloaded dependency JARs from maven pom.xml file (found it somewhere for version OWL API 4.0.1). List of jars:

JARS

First of all, it was error with RDFFormat (need to add sesame lib, which was not in pom.xml. But I still have "NoSuchMethodError" errors. First one was

com.google.common.base.Objects.firstNonNull

(with Guava 17.0).I updated it to 18.0, now its

com.google.common.base.Platform.systemNanoTime

Here on stackoverflow is answer for this:

You most likely have both a recent version of Guava and either google-collect or a version of Guava prior to 3.0 on your classpath

But no, I dont have old Guava lib named google-collect(ions).


Solution

  • Thank you for you responses. I use

    -verbose:class
    

    and found out, that package for that class is from

    gephi-toolkit.jar
    

    Tt has google-collection too ... so yeah, different versions.