Sounds like d2rq-0.8.jar is not on the classpath when you're running your plugin.
Best, Richard On 13 Apr 2012, at 18:20, Nouman Fallouh wrote: > Hello ... > > I'm trying to use D2R in developing a Protege plugin, after following the > installation instructions described in: http://d2rq.org/jena#installation > > I tried the following code just to make sure everything is okay, but the > following error comes up when running > > import de.fuberlin.wiwiss.d2rq.map.Mapping; > .... > public void initialiseClassView() throws Exception { > ........ > > namesComponent = new JTextArea(); > > namesComponent.setText("before ... \n"); > > Mapping mapping = new Mapping("D:\\D2R\\d2rq-0.8\\mapping-isis-1.n3"); > > namesComponent.append("Afer ... \n"); > > ..... > > } > > > ------------------------- > Error 1 Logged at Fri Apr 13 19:55:41 AST 2012 > NoClassDefFoundError: de/fuberlin/wiwiss/d2rq/map/Mapping > > org.coode.taxonomy.tabbedhierarchyview.TabbedHierarchyView.initialiseClassView(TabbedHierarchyView.java:47) > > org.protege.editor.owl.ui.view.cls.AbstractOWLClassViewComponent.initialiseView(AbstractOWLClassViewComponent.java:28) > > org.protege.editor.owl.ui.view.AbstractOWLSelectionViewComponent.initialiseOWLView(AbstractOWLSelectionViewComponent.java:118) > > org.protege.editor.owl.ui.view.AbstractOWLViewComponent.initialise(AbstractOWLViewComponent.java:62) > org.protege.editor.core.ui.view.View.createContent(View.java:439) > org.protege.editor.core.ui.view.View.createUI(View.java:219) > org.protege.editor.core.ui.view.View$1.hierarchyChanged(View.java:149) > java.awt.Component.processHierarchyEvent(Unknown Source) > java.awt.Component.processEvent(Unknown Source) > java.awt.Container.processEvent(Unknown Source) > java.awt.Component.dispatchEventImpl(Unknown Source) > java.awt.Container.dispatchEventImpl(Unknown Source) > java.awt.Component.dispatchEvent(Unknown Source) > java.awt.Component.createHierarchyEvents(Unknown Source) > java.awt.Container.createHierarchyEvents(Unknown Source) > java.awt.Container.createHierarchyEvents(Unknown Source) > java.awt.Container.createHierarchyEvents(Unknown Source) > java.awt.Container.createHierarchyEvents(Unknown Source) > java.awt.Container.createHierarchyEvents(Unknown Source) > java.awt.Component.show(Unknown Source) > java.awt.Component.show(Unknown Source) > java.awt.Component.setVisible(Unknown Source) > javax.swing.JComponent.setVisible(Unknown Source) > javax.swing.JTabbedPane.fireStateChanged(Unknown Source) > javax.swing.JTabbedPane$ModelListener.stateChanged(Unknown Source) > javax.swing.DefaultSingleSelectionModel.fireStateChanged(Unknown Source) > javax.swing.DefaultSingleSelectionModel.setSelectedIndex(Unknown Source) > javax.swing.JTabbedPane.setSelectedIndexImpl(Unknown Source) > javax.swing.JTabbedPane.setSelectedIndex(Unknown Source) > javax.swing.plaf.basic.BasicTabbedPaneUI$Handler.mousePressed(Unknown > Source) > java.awt.Component.processMouseEvent(Unknown Source) > javax.swing.JComponent.processMouseEvent(Unknown Source) > java.awt.Component.processEvent(Unknown Source) > java.awt.Container.processEvent(Unknown Source) > java.awt.Component.dispatchEventImpl(Unknown Source) > java.awt.Container.dispatchEventImpl(Unknown Source) > java.awt.Component.dispatchEvent(Unknown Source) > java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) > java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) > java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) > java.awt.Container.dispatchEventImpl(Unknown Source) > java.awt.Window.dispatchEventImpl(Unknown Source) > java.awt.Component.dispatchEvent(Unknown Source) > java.awt.EventQueue.dispatchEventImpl(Unknown Source) > java.awt.EventQueue.access$000(Unknown Source) > java.awt.EventQueue$1.run(Unknown Source) > java.awt.EventQueue$1.run(Unknown Source) > java.security.AccessController.doPrivileged(Native Method) > java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown > Source) > java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown > Source) > java.awt.EventQueue$2.run(Unknown Source) > java.awt.EventQueue$2.run(Unknown Source) > java.security.AccessController.doPrivileged(Native Method) > java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown > Source) > java.awt.EventQueue.dispatchEvent(Unknown Source) > java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) > java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) > java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) > java.awt.EventDispatchThread.pumpEvents(Unknown Source) > java.awt.EventDispatchThread.pumpEvents(Unknown Source) > java.awt.EventDispatchThread.run(Unknown Source) > --------------------------------------------------------------------------------------------------- > > ------------------------------------------------------------------------------ > For Developers, A Lot Can Happen In A Second. > Boundary is the first to Know...and Tell You. > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! > http://p.sf.net/sfu/Boundary-d2dvs2_______________________________________________ > d2rq-map-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ d2rq-map-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel
