无法打开编辑器:无法初始化编辑器. NoClassDefFoundError [英] Could not open the editor: Editor could not be initialized. NoClassDefFoundError

查看:550
本文介绍了无法打开编辑器:无法初始化编辑器. NoClassDefFoundError的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在eclipse中导入Play2项目,并可以处理scala文件,但是问题是我无法打开诸如"index.scala.html"之类的视图文件.当我尝试打开文件时,出现以下错误.

I can import the Play2 project in eclipse, and work on scala files, but the problem is I can't open view files likes 'index.scala.html'. When I try to open the file I get following error.

无法打开编辑器:无法初始化编辑器.

java.lang.NoClassDefFoundError: scala/util/parsing/input/Positional
at org.scalaide.play2.templateeditor.lexical.TemplatePartitionTokeniser.getScalaCommentAndPlainRegions(TemplatePartitionTokeniser.scala:28)
at org.scalaide.play2.templateeditor.lexical.TemplatePartitionTokeniser.tokenise(TemplatePartitionTokeniser.scala:66)
at org.scalaide.play2.templateeditor.sse.lexical.TemplateTextRegionsComputer.tokens$lzycompute(TemplateRegionParser.scala:98)
at org.scalaide.play2.templateeditor.sse.lexical.TemplateTextRegionsComputer.tokens(TemplateRegionParser.scala:96)
at org.scalaide.play2.templateeditor.sse.lexical.TemplateTextRegionsComputer.<init>(TemplateRegionParser.scala:128)
at org.scalaide.play2.templateeditor.sse.lexical.TemplateRegionParser.reset(TemplateRegionParser.scala:84)
................

但是打开其他文件没有问题.我不知道怎么了 顺便说一句,我使用typesafe-activator来创建播放项目.

But there is no problem opening other files. I don't know what's wrong. btw, I used typesafe-activator to create play project.

我将不胜感激任何建议,解决方案或变通办法.

I will appreciate any suggestions, solutions or workarounds to make it work.

谢谢.

推荐答案

1.清理项目并构建一次 2.只需转到选项卡菜单,从选项卡窗口中选择新窗口

1.Clean your project and build once 2.Just go to tab menu select newwindow from tab window

我已经通过前两个步骤解决了

i were solved with first two steps thanks

仍然面对问题,请重新启动它.

still you facing the problem please restart it.

这篇关于无法打开编辑器:无法初始化编辑器. NoClassDefFoundError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆