简体   繁体   English

sbt无法编译“导入ch.epfl.lamp.fjbg._”

[英]sbt failed to compile “import ch.epfl.lamp.fjbg._”

scalac is successed to compile this code. scalac成功编译了此代码。

import ch.epfl.lamp.fjbg._

But sbt (0.11.2) is failed to compile it. 但是sbt (0.11.2)无法编译。

[error] genbytecode.scala:2: not found: object ch
[error] import ch.epfl.lamp.fjbg._
[error]        ^
[error] one error found 

Why and how can I fix this? 为什么以及如何解决此问题?

The OP posted a comment: OP发布了一条评论:

I create build.sbt and write libraryDependencies += "org.scala-lang" % "scala-compiler" % "2.9.1" work it! 我创建build.sbt并编写libraryDependencies += "org.scala-lang" % "scala-compiler" % "2.9.1"工作! thank you. 谢谢。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM