Eclipse3.1报SWT error

phoenix2xp 2005-07-11 04:00:27
安装后启动eclipse, 新建工程(或其他)点击next后出现对话框提示出错"an SWT error has occurred", 并提示是否退出workbench.

操作系统 windows xp
eclipse版本 3.1 (目前未安装任何插件)
jdk版本 1.4.2_08

环境变量:
classpath为,;c:\j2dk1.4.2_08
path中加入了;c:\j2dk1.4.2_08\bin

log内容如下:
!SESSION 2005-07-09 13:05:58.710 -----------------------------------------------
eclipse.buildId=I20050627-1435
java.version=1.4.2_08
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.ui 4 4 2005-07-09 13:13:36.748
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 2005-07-09 13:13:36.789
!MESSAGE No more handles
!STACK 0
org.eclipse.swt.SWTError: No more handles
at org.eclipse.swt.SWT.error(SWT.java:2968)
at org.eclipse.swt.SWT.error(SWT.java:2865)
at org.eclipse.swt.SWT.error(SWT.java:2836)
at org.eclipse.swt.widgets.Widget.error(Widget.java:395)
at org.eclipse.swt.widgets.Control.createHandle(Control.java:482)
at org.eclipse.swt.widgets.Link.createHandle(Link.java:174)
at org.eclipse.swt.widgets.Control.createWidget(Control.java:497)
at org.eclipse.swt.widgets.Link.createWidget(Link.java:188)
at org.eclipse.swt.widgets.Control.<init>(Control.java:97)
at org.eclipse.swt.widgets.Link.<init>(Link.java:87)
at org.eclipse.ui.dialogs.PreferenceLinkArea.<init>(PreferenceLinkArea.java:60)
at org.eclipse.compare.internal.ComparePreferencePage.createTextComparePage(ComparePreferencePage.java:300)
at org.eclipse.compare.internal.ComparePreferencePage.createContents(ComparePreferencePage.java:216)
at org.eclipse.jface.preference.PreferencePage.createControl(PreferencePage.java:232)
at org.eclipse.jface.preference.PreferenceDialog.createPageControl(PreferenceDialog.java:1371)
at org.eclipse.jface.preference.PreferenceDialog$12.run(PreferenceDialog.java:1138)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148)
at org.eclipse.jface.preference.PreferenceDialog.showPage(PreferenceDialog.java:1132)
at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.showPage(FilteredPreferenceDialog.java:351)
at org.eclipse.jface.preference.PreferenceDialog$8.selectionChanged(PreferenceDialog.java:638)
at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:763)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148)
at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:761)
at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:1042)
at org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewer.java:1062)
at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:231)
at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:226)
at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:392)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3057)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2716)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:809)
at org.eclipse.jface.window.Window.open(Window.java:787)
at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:66)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2713)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
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:334)
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)

...全文
183 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
phoenix2xp 2005-07-19
  • 打赏
  • 举报
回复
不知道阿肖的方法可不可行,不过我已经找到问题所在,并且解决了!

产生问题的原因就是:Windows版本的问题!我原来用的是一个集成了mac主题的WindowsXP sp2,最近升级成了俄罗斯v9版的sp2,问题就解决了。想来很有可能就是有什么dll文件不一致导致的这个问题。所以觉得阿肖的方法或者就可以解决。

这里也多谢阿肖和无所谓两位兄弟与我一起参详了……

结贴!!!
xiaoysh 2005-07-15
  • 打赏
  • 举报
回复
设置了-Djava.library.path么?
指向swt-awt-win32-3062.dll和swt-win32-3062.dll所在路径
比如我本机是D:\eclipse\plugins\org.eclipse.swt.win32_3.0.2\os\win32\x86
或者直接把这两个dll拷贝到system32目录下,那么设也不用设了
phoenix2xp 2005-07-15
  • 打赏
  • 举报
回复
环境变量都加好了,还是不行!

「已注销」 2005-07-12
  • 打赏
  • 举报
回复
"org.eclipse.swt.SWTError: No more handles" 错误是不是在环境变量中要加上 lib\tools.jar; \lib\dt.jar

58,454

社区成员

发帖
与我相关
我的任务
社区描述
Java Eclipse
社区管理员
  • Eclipse
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧