我安装了Scala IDE for Eclipse,似乎工作正常。所以现在我正在尝试导入Lift项目(特别是来自Stax application platform的自动生成的Lift项目),现在我的工作区出现了四个错误:
value net is not a member of package <root> Boot.scala /rss2lj/src/scala/bootstrap/liftweb line [3..6] Scala Problem
在行:
import _root_.net.liftweb.util._
import _root_.net.liftweb.http._
import _root_.net.liftweb.sitemap._
import _root_.net.liftweb.sitemap.Loc._
有人可以帮我解决一下吗?
UPD :我发现discussion有基于maven项目的解决方案,但我正在尝试使用的项目不是基于maven的。
我得到了答案here,但新错误发生在同一行:
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)