一个rcp插件,在普通测试类以java application程序运行时正确。当以eclipse application运行时,界面调用
开发了一个rcp插件,此插件引用了其它几个插件。当用一个普通类的main方法,以javaapplication测试时,程序没有任何问题,但是,当将该插件以eclipsea...
开发了一个rcp插件,此插件引用了其它几个插件。当用一个普通类的main方法,以java application测试时,程序没有任何问题,但是,当将该插件以eclipse application程序运行的时候,在一个viewpart的按钮事件中调用这段代码,却没有任何结果,没有抛出异常,当catch error的时候,出现如下错误:java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at org.apache.mahout.math.matrix.DoubleFactory2D.<clinit>(DoubleFactory2D.java:88) at org.carrot2.matrix.factorization.MatrixFactorizationBase.<clinit>(MatrixFactorizationBase.java:28) at org.carrot2.matrix.factorization.PartialSingularValueDecompositionFactory.factorize(PartialSingularValueDecompositionFactory.java:40) at ccnu.eitec.ke.lsa.Carrot2MatrixSVD.extract(Carrot2MatrixSVD.java:49) at ccnu.eitec.ke.view.TestView$1.widgetSelected(TestView.java:35) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at ccnu.eitec.ke.Application.run(Application.java:18) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336) at org.eclipse.core.launcher.Main.basicRun(Main.java:280) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952)Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:407) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:352) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83) at java.lang.ClassLoader.loadClass(Unknown Source) ... 28 more
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询