From: <Fro...@id...> - 2005-09-30 12:36:10
|
Hi. I'm trying to figure out this TM4J. I'v just tried to make a TopicMapProvider and add the "kings_and_queens" topic map. Like this: TopicMapProviderFactory tmpf = TopicMapProviderFactory.newInstance(); TopicMapProvider provider = tmpf.newTopicMapProvider(System.getProperties()); TopicMapSource source = new SerializedTopicMapSource("C:/Diplom/tm4j-0.9.7/examples/topicmaps/kings_and_queens.xtm"); TopicMap tm = provider.addTopicMap(source); When I run this program I recieve the following error: Exception in thread "main" java.lang.AbstractMethodError: javax.xml.parsers.SAXParserFactory.setFeature(Ljava/lang/String;Z)V at org.tm4j.topicmap.utils.XMTBuilder.build(XTMBuilder.java:363) at org.tm4j.topicmap.utils.XMTBuilder.build(XTMBuilder.java:317) at org.tm4j.topicmap.source.SerializedTopicMapSource.readMap(SerializedTopicMapSource.java:269) at org.tm4j.topicmap.source.SerializedTopicMapSource.populateTopicMap(SerializedTopicMapSource.java:317) at org.tm4j.topicmap.source.SerializedTopicMapSource.populateTopicMap(SerializedTopicMapSource.java:252) at org.tm4j.topicmap.source.TopicMapSourceSupport.addTopicMap(TopicMapSourceSupport.java:35) at org.tm4j.topicmap.source.TopicMapSourceSupport.addTopicMap(TopicMapSourceSupport.java:69) at NyTest2.main(Nytest2.java:19) I recieve the same error when trying to run the "Stats" example that follows TM4J. regards Frode Hjeltnes |