Post-Answer Edit: This was an issue that arose primarily due to IDE issues. This is more likely to be useful if you are new to eclipse, or java programming in general while also learning about OWL.
I am very new to OWL in general, and need to familiarize myself with the OWL API for a project I am working on. I am a bit rusty on my java, so maybe my issue is there, though I do not think so.
Issue: I have been playing with OWL API for several days and am having trouble finding compatible versions of libraries necessary to do ANYTHING. Here is some example code of a very basic operation I am trying to perform:
package converter;
import org.semanticweb.owlapi.apibinding.OWLManager;
import org.semanticweb.owlapi.model.OWLOntologyManager;
public class OWL_Converter {
OWLOntologyManager m = OWLManager.createOWLOntologyManager();
}
This throws exactly 11,362 errors for me when I try to build in eclipse. The first 50 or so of these errors say things like "AbstractAnnotatedAxiomRoundTrippingTestCase cannot be resolved to a type". Please someone help me figure out what I am doing wrong. I have been messing around with OWL and OWL api for the past three days with very slow progress, and now I am hitting walls like this where it seems that no matter how many of the OWL api classes I import, I still have unresolved types from indirect references of classes, etc...
The stack trace appears as below:
Exception in thread "main" java.lang.NoClassDefFoundError: ch/qos/logback/core/joran/spi/JoranException
at org.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:189)
at org.slf4j.LoggerFactory.bind(LoggerFactory.java:112)
at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:105)
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:235)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:208)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:221)
at org.semanticweb.owlapi.OWLAPIServiceLoaderModule.<clinit>(OWLAPIServiceLoaderModule.java:50)
at org.semanticweb.owlapi.apibinding.OWLManager.<clinit>(OWLManager.java:42)
at owl_converter.Converter.main(Converter.java:115)
Caused by: java.lang.ClassNotFoundException: ch.qos.logback.core.joran.spi.JoranException
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 9 more