Eclipse Scala IDE 中的 Scala-Lift 项目错误
我安装了 Scala IDE for Eclipse,它似乎工作正常。所以现在我正在尝试导入一个 Lift 项目(具体来说 - 来自 Stax 应用程序平台自动生成的 Lift 项目),并且现在我的工作区出现四个错误:
value net is not a member of package <root> Boot.scala /rss2lj/src/scala/bootstrap/liftweb line [3..6] Scala Problem
Atlines:
import _root_.net.liftweb.util._
import _root_.net.liftweb.http._
import _root_.net.liftweb.sitemap._
import _root_.net.liftweb.sitemap.Loc._
任何人都可以帮我解决这个问题吗?
UPD:我发现了一个讨论 具有基于 Maven 的项目的解决方案,但我尝试使用的项目不是基于 Maven 的。
我在此处得到了答案,但出现了新错误发生在同一行:
error while loading Helpers, Scala signature Helpers has wrong version
expected: 5.0
found: 4.1 in /home/gleontiev/workspace/rss2lj/webapp/WEB-INF/lib/
lift-util-1.0.jar(net/liftweb/util/Helpers.class)
error while loading LiftRules, Scala signature LiftRules has wrong
version
expected: 5.0
found: 4.1 in /home/gleontiev/workspace/rss2lj/webapp/WEB-INF/lib/
lift-webkit-1.0.jar(net/liftweb/http/LiftRules.class)
error while loading Loc, Scala signature Loc has wrong version
expected: 5.0
found: 4.1 in /home/gleontiev/workspace/rss2lj/webapp/WEB-INF/lib/
lift-webkit-1.0.jar(net/liftweb/sitemap/Loc.class)
error while loading Menu, Scala signature Menu has wrong version
expected: 5.0
found: 4.1 in /home/gleontiev/workspace/rss2lj/webapp/WEB-INF/lib/
lift-webkit-1.0.jar(net/liftweb/sitemap/Menu.class)
I installed Scala IDE for Eclipse, and it seems to be working okay. So now I'm trying to import a Lift project (specifically -- autogenerated Lift project from Stax application platform), and now I'm having four errors at my workspace:
value net is not a member of package <root> Boot.scala /rss2lj/src/scala/bootstrap/liftweb line [3..6] Scala Problem
At lines:
import _root_.net.liftweb.util._
import _root_.net.liftweb.http._
import _root_.net.liftweb.sitemap._
import _root_.net.liftweb.sitemap.Loc._
Could anyone please help me out with it?
UPD: I found a discussion with solution for maven-based projects, but the project, I'm trying to work with is not maven-based.
I got an answer here, but the new error occured on the same lines:
error while loading Helpers, Scala signature Helpers has wrong version
expected: 5.0
found: 4.1 in /home/gleontiev/workspace/rss2lj/webapp/WEB-INF/lib/
lift-util-1.0.jar(net/liftweb/util/Helpers.class)
error while loading LiftRules, Scala signature LiftRules has wrong
version
expected: 5.0
found: 4.1 in /home/gleontiev/workspace/rss2lj/webapp/WEB-INF/lib/
lift-webkit-1.0.jar(net/liftweb/http/LiftRules.class)
error while loading Loc, Scala signature Loc has wrong version
expected: 5.0
found: 4.1 in /home/gleontiev/workspace/rss2lj/webapp/WEB-INF/lib/
lift-webkit-1.0.jar(net/liftweb/sitemap/Loc.class)
error while loading Menu, Scala signature Menu has wrong version
expected: 5.0
found: 4.1 in /home/gleontiev/workspace/rss2lj/webapp/WEB-INF/lib/
lift-webkit-1.0.jar(net/liftweb/sitemap/Menu.class)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
提出此类问题的最佳位置是 Scala IDE 用户邮件列表。
The best place to ask questions like this is on the Scala IDE user mailing list.