Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on executing example code #73

Closed
ShahimEssaid opened this issue Feb 2, 2015 · 3 comments
Closed

Error on executing example code #73

ShahimEssaid opened this issue Feb 2, 2015 · 3 comments

Comments

@ShahimEssaid
Copy link

From daniele1...@hotmail.com on July 11, 2013 07:51:51

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: http://code.google.com/p/owltools/issues/detail?id=73

@ShahimEssaid
Copy link
Author

From HDie...@lbl.gov on July 11, 2013 14:59:41

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.

@ShahimEssaid
Copy link
Author

From daniele1...@hotmail.com on July 12, 2013 00:57:24

Yes, strangely I've downloaded only sparqldl-api.jar file without dependencies. Thank you !!

@ShahimEssaid
Copy link
Author

From HDie...@lbl.gov on July 29, 2013 10:17:41

Status: Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant