Eclipse Scala IDE 中的 Scala-Lift 项目错误

发布于 2024-09-09 09:33:21 字数 1827 浏览 6 评论 0原文

我安装了 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

空宴 2024-09-16 09:33:21

提出此类问题的最佳位置是 Scala IDE 用户邮件列表。

The best place to ask questions like this is on the Scala IDE user mailing list.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文