A NoSuchMethodError/ClassDefNotFoundError always indicates a
misconfiguration of your Java class path.  Either you do not have the
correct dependencies or you have conflicting versions of dependencies.

The method in question comes from the ARQ module but without any details
of your set up it is impossible to say what the configuration problem is

Using a dependency and build management tool like Maven is the recommended
way to integrate Jena into your projects.  If you are already using maven
I would suggest using the dependency:tree goal and examining the output to
look for conflicting versions of Jena libraries.

Rob

On 13/05/2014 13:19, "Harkishan Singh" <[email protected]>
wrote:

>Hi,
>
>While reading rdf from tdb I'm getting this exception:
>
>java.lang.NoSuchMethodError:
>com.hp.hpl.jena.query.DatasetFactory.create(Lcom/hp/hpl/jena/sparql/core/D
>atasetGraph;)Lcom/hp/hpl/jena/query/Dataset;
>
>at line:
>
>dataset = TextDatasetFactory.createLucene(tdbDataset, dir, entDef);
>
>
>Does anyone know hoe to fix it.
>
>Thanks in advance




Reply via email to