Failed to create the part's controls

使用Eclipse/MyEclipse时,无法打开jsp文件,报错Failed to create the part's controls...且预览窗口显示不完整

Failed to create the part's controls...错误
 
方法一:
  1. 依次点击:File--》Switch Workpace--》Other

    Failed to create the part's controls...错误
  2. 2

    点击Browser,并重新选择目录

    Failed to create the part's controls...错误
  3.  

    这里依然选择相同的工作空间,并点击确定

    Failed to create the part's controls...错误
  4. 4

    点击OK,待IDE自动重启之后,即可正常打开jsp文件

    Failed to create the part's controls...错误
     

注意事项

 
  • 步骤2不能忽略
  • 如果操作流程正确,最后一步IDE会自动重启

方法二:

在文件上右键:open with,换另一种打开方式

楼主只能用文本类型方式打开jap文件,希望能有更好的解决方法。。。。

原文地址:https://www.cnblogs.com/lls1350767625/p/7785009.html