2014-06-10 154 views
1

我可以導入eclipse中的Play2項目,並在Scala文件上工作,但問題是我無法打開視圖文件喜歡'index.scala.html'。當我嘗試打開文件時,出現以下錯誤。無法打開編輯器:編輯器無法初始化。 NoClassDefFoundError

無法打開編輯器:編輯器無法初始化。

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來創建遊戲項目。

我會感激任何建議,解決方案或解決方法,使其工作。

謝謝。

回答

0

1.Clean項目,打造一次 2.Just去選項卡菜單中選擇選項卡窗口newwindow

我是解決了前兩個步驟感謝

你仍然面臨的問題請重新啓動它。

相關問題