`

java.lang.NoClassDefFoundError: com/ibm/icu/text/BreakIterator

阅读更多

关键字:java.lang.NoClassDefFoundError: com/ibm/icu/text/BreakIterator StyledText

 

在RCP程序中使用StyledText的时候,发现了一个奇怪的错误总是报这个:

错误信息: 写道
!ENTRY org.eclipse.ui 4 0 2010-11-25 14:04:50.355
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NoClassDefFoundError: com/ibm/icu/text/BreakIterator
at org.eclipse.jface.text.DefaultTextDoubleClickStrategy.doubleClicked(DefaultTextDoubleClickStrategy.java:198)
at org.eclipse.jface.text.TextViewer$TextDoubleClickStrategyConnector.getPreviousOffset(TextViewer.java:216)
at org.eclipse.swt.custom.StyledTextListener.handleEvent(StyledTextListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
at org.eclipse.swt.custom.StyledText.sendWordBoundaryEvent(StyledText.java:8081)
at org.eclipse.swt.custom.StyledText.getWordPrevious(StyledText.java:5391)
at org.eclipse.swt.custom.StyledText.getWordPrevious(StyledText.java:5365)
at org.eclipse.swt.custom.StyledText.handleMouseDown(StyledText.java:6033)
at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:5658)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at cn.udt.gui.app.Application.start(Application.java:37)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
at org.eclipse.equinox.launcher.Main.main(Main.java:1383)

 

 

结果在程序中加了:

styledText.setDoubleClickEnabled(false);

 

就没有错误了,不是太明白。

 

maybe should add plugin "com.ibm.icu"

分享到:
评论
2 楼 uniquejava 2014-03-16  
以前碰到过,估计是在icu包中实现了双击自动选中一段文本的功能, 要引入好几M的jar包,不值...
1 楼 xmind 2013-09-12  
maybe need plugin "com.ibm.icu".

相关推荐

Global site tag (gtag.js) - Google Analytics