java 未能打开编辑器,无法打开编辑器:编辑器无法初始化。 NoClassDefFoundError

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.

Could not open the editor: Editor could not be initialized.

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.(TemplateRegionParser.scala:128)

at org.scalaide.play2.templateeditor.sse.lexical.TemplateRegionParser.reset(TemplateRegionParser.scala:84)

................

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.

Thank you.

解决方案

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值