myeclipse报错:Could not create the view: An unexpected exception was thrown.

时间:2022-09-02 10:48:11
myeclipse报错:Could not create the view: An unexpected exception was thrown.

打开server窗口,发现显示:Could not create the view: An unexpected exception was thrown.

此处解决方法:

  1.   关闭myeclipse
  2.   删除文件workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.genuitec.eclipse.ast.deploy.core.prefs
  3.   重新启动myeclipse即可

为了了解原因,需要做些工作:

  了解到:

  .metadata:保存当前工作空间的一些配置信息,Eclipse内所有改动都放在这个文件夹中。其中,workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings里面保存的是eclipse启动的配置

  菜单 “windows->preference”相关的数据大多在 .metadata\.plugins\org.eclipse.core.runtime\.settings 下。

  原因:应该是myeclipse未完全加载其中的配置信息造成的,可能是它读不出其中的配置信息,也可能是它解析其中的配置信息出了问题。由于这个本身不涉及工作空间中的其他控件的使用,只是无法创建server显示的信息,所以,可以删除后,在eclipse重启过程中,靠它自己重新新建。明显deploy是显示用途的信息配置。