linikujp / owltools

Automatically exported from code.google.com/p/owltools
0 stars 0 forks source link

Error on executing example code #73

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Compile
2.Run

What is the expected output? What do you see instead?
 I receive this error:

Excecute the query:
Exception in thread "main" java.lang.NoClassDefFoundError: 
jpaul/DataStructs/UnionFind
SELECT * WHERE {
Type(?x, <http://www.w3.org/TR/2003/PR-owl-guide-20031209/wine#WhiteWine>)}
-------------------------------------------------
    at de.derivo.sparqldlapi.impl.QueryEngineImpl.findComponents(Unknown Source)
    at de.derivo.sparqldlapi.impl.QueryEngineImpl.execute(Unknown Source)
    at javaapplication6.SparqlDLQueryTest.processQuery(SparqlDLQueryTest.java:167)
    at javaapplication6.SparqlDLQueryTest.testQuery(SparqlDLQueryTest.java:69)
    at javaapplication6.JavaApplication6.main(JavaApplication6.java:19)
Caused by: java.lang.ClassNotFoundException: jpaul.DataStructs.UnionFind
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    ... 5 more
Java Result: 1

What version of the product are you using? On what operating system?
OWLAPI 3.4.3

Original issue reported on code.google.com by daniele1...@hotmail.com on 11 Jul 2013 at 2:51

GoogleCodeExporter commented 9 years ago
Hello,
I assume with the example you mean the test class: 
owltools.graph.SparqlDLQueryTest in OWLTools-Core.
This test case runs without any problems. Judging from your error message, you 
created new test example in a different project. That project seems not to 
import all the required jar files. In your case, you are missing the jpaul.jar 
file.
We handle all of our imports via Maven and its pom.xml project descriptor. 
JPaul and JDom are both transitive dependencies for the sparqldl-api.

Original comment by HDie...@lbl.gov on 11 Jul 2013 at 9:59

GoogleCodeExporter commented 9 years ago
Yes, strangely I've downloaded only sparqldl-api.jar file without dependencies. 
Thank you !!

Original comment by daniele1...@hotmail.com on 12 Jul 2013 at 7:57

GoogleCodeExporter commented 9 years ago

Original comment by HDie...@lbl.gov on 29 Jul 2013 at 5:17