Problems with ai.grakn.client.Client while using it into a java app to migrate owl files


#1

I am trying to code a java app for migrate OWL files to grakn, but I am having the error:

Exception in thread “main” java.lang.NoClassDefFoundError: ai/grakn/client/Client
at ai.mtrip.App.main(App.java:24)
Caused by: java.lang.ClassNotFoundException: ai.grakn.client.Client
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

I want to integrate the OWLMigrator in my code to be able to merge files from different sources, but I can’t reach to have the OWLmigrated.
Thanks in advance


#2

Hmmm so off the top of my head, can you make sure that the following dependencies have been added to your project:

<dependency>
    <groupId>ai.grakn</groupId>
    <artifactId>grakn-client</artifactId>
    <version>${project.version}</version>
</dependency>
<dependency>
    <groupId>ai.grakn</groupId>
    <artifactId>migration-owl</artifactId>
    <version>${project.version}</version>
</dependency>

#3

Hmmmmm, Yes, I am checking my dependencies and I have this two in my pom, but it doesn’t work…


#4

What version are you using? Can you provide some steps that will help us reproduce this issue?