I'm getting Apache Jena set up and am having some issues. I think my issue
is with environment variable, but I'm not sure.

Here is what I've posted on Stack Overflow:

Based on this tutorial
<http://staff.um.edu.mt/cabe2/lectures/webscience/docs/jena.pdf> I've
gotten my workspace set up. I've removed the package identifier from my code
<https://stackoverflow.com/questions/36402759/error-could-not-find-or-load-main-class-classdemo>
.

Now I get this error:

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/jena/rdf/model/ModelFactory at
Tutorial01.main(Tutorial01.java:34)
Caused by: java.lang.ClassNotFoundException:
org.apache.jena.rdf.model.ModelFactory
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

I think it's a JENAROOT Issue. I think I'm setting it and adding it
<https://stackoverflow.com/questions/28177971/tdbloader2-fails-with-classpath-error/28181902#28181902>
 to the path correctly. It's also mentioned here
<https://jena.apache.org/documentation/tools/>, but I haven't been able to
troubleshoot it yet.

Anybody can point me in the right direction?
Thanks,
Louis

Reply via email to