开发者社区> 问答> 正文

Eclipse 未能创建视图

小弟在Eclipse 上用pydev写python程序,第一次用Eclipse,安装语言包就捣鼓了好久,安装好中文语言后问题又来了,Eclipse 提示“未能创建视图org.eclipse.ui.internal.ViewIntroAdapterPart cannot be cast to org.eclipse.ui.IViewPart ”。查看信息信息:

java.lang.ClassCastException: org.eclipse.ui.internal.ViewIntroAdapterPart cannot be cast to org.eclipse.ui.IViewPart

at org.eclipse.ui.internal.tweaklets.InterceptContributions$1.tweakView(InterceptContributions.java:30)

 at org.eclipse.ui.internal.registry.ViewDescriptor.createView(ViewDescriptor.java:67)

 at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:327)

 at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:229)

 at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)

 at org.eclipse.ui.internal.Perspective.showView(Perspective.java:2245)

 at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:1071)

 at org.eclipse.ui.internal.WorkbenchPage$20.run(WorkbenchPage.java:3822)

 at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)

 at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3819)

 at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:3795)

 at org.eclipse.ui.internal.WorkbenchIntroManager.createIntro(WorkbenchIntroManager.java:173)

 at org.eclipse.ui.internal.WorkbenchIntroManager.showIntro(WorkbenchIntroManager.java:120)

 at org.eclipse.ui.internal.WorkbenchWindow$22.runWithException(WorkbenchWindow.java:2295)

 at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)

 at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)

 at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)

 at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4041)

 at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)

 at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)

 at org.eclipse.ui.internal.Workbench$31.runWithException(Workbench.java:1567)

 at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)

 at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)

 at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)

 at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4041)

 at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)

 at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2548)

 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 org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)

 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(Unknown Source)

 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

 at java.lang.reflect.Method.invoke(Unknown Source)

 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)

打开错误日志看都名为org.eclipse.ui插件的错误,哪位大侠知道这个怎么处理呀?

展开
收起
爵霸 2016-06-06 10:59:07 9336 0
1 条回答
写回答
取消 提交回答
  • Eclipse是支持动态网站创建的。 创建方法: 1、选择file->new->other->web->dynamic web project, 填写项目的相关信息。在该界面里有个project contents,默认是在你的workspace下, 也可以随便选择其他位置,或则是已经存在的文件。  注意这里的内容,如果是用的MyEclipse的web project的话,content directory的值默认为WebRoot,需要修改为WebContent, 因为脚本都是按照WebContent来写的。  2、点击确定后,可能会弹出下面这个警告框,询问是否切换到和该项目类型关联的JavaEE视图上。 所谓视图简单的讲就是view的组合。  项目创建这样就完成了,在左侧项目栏里会出现如下内容 (具体显示方式和在什么view里查看是相关的,图示是Navigator下的显示形式)
    

    答案来源网络,供参考,希望对您有帮助

    2019-10-16 17:28:00
    赞同 展开评论 打赏
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载

相关镜像