我是jena新手,我有这个错误:
Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
at com.hp.hpl.jena.rdf.model.impl.RDFReaderFImpl.<clinit>(RDFReaderFImpl.java:74)
at com.hp.hpl.jena.rdf.model.impl.ModelCom.<clinit>(ModelCom.java:54)
at com.hp.hpl.jena.rdf.model.ModelFactory.createDefaultModel(ModelFactory.java:142)
at com.hp.hpl.jena.rdf.model.ModelFactory.createDefaultModel(ModelFactory.java:136)
at com.hp.hpl.jena.vocabulary.OWL.<clinit>(OWL.java:37)
at com.hp.hpl.jena.ontology.ProfileRegistry.<clinit>(ProfileRegistry.java:47)
at com.hp.hpl.jena.ontology.OntModelSpec.<clinit>(OntModelSpec.java:53)
at myprogram.Connection.<init>(Connection.java:46)
跳转到此异常的代码部分是这样的(Connection.java:46):
m = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM, null );
我定义的用户库包含:
commons-codec-1.5.jar
httpclient-4.1.2.jar
httpcore-4.1.3.jar
jcl-over-slf4j-1.6.4
jena-arq-2.9.4.jar
jena-core-2.7.4.jar
jena-iri-0.9.4.jar
jena-tdb-0.9.4.jar
log4j-1.2-16.jar
slf4j-api-1.7.2.jar
slf4j-log4j12-1.6.4.jar
xercesimpl-2.10.0.jar
xml-apis-1.4.01.jar
Java版本是jdk1.7.0_11
任何人都可以帮助我吗?