【发布时间】:2014-03-08 09:59:18
【问题描述】:
我有一个使用 java 1.7、Play 2.2.0 构建的 play 项目,我正在尝试使用以下命令为我的项目创建 Eclipse 项目文件:
F:\Projects\test>play
[test] $ clean
[test] $ compile
[test] $ eclipse with-source=true
但它抛出以下错误:-
java.lang.RuntimeException: could not find scala-library.jar
at play.PlayEclipse$$anon$7$$anonfun$createTransformer$3$$anonfun$3.apply(PlayEclipse.scala:80)
at play.PlayEclipse$$anon$7$$anonfun$createTransformer$3$$anonfun$3.apply(PlayEclipse.scala:80)
at scala.Option.getOrElse(Option.scala:120)
at play.PlayEclipse$$anon$7$$anonfun$createTransformer$3.apply(PlayEclipse.scala:80)
at play.PlayEclipse$$anon$7$$anonfun$createTransformer$3.apply(PlayEclipse.scala:79)
at scalaz.Validation$class.map(Validation.scala:114)
at scalaz.Success.map(Validation.scala:343)
at play.PlayEclipse$$anon$7.createTransformer(PlayEclipse.scala:79)
at com.typesafe.sbteclipse.core.Eclipse$$anonfun$5$$anonfun$apply$4$$anonfun$6.apply(Eclipse.scala:120)
at com.typesafe.sbteclipse.core.Eclipse$$anonfun$5$$anonfun$apply$4$$anonfun$6.apply(Eclipse.scala:120)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.immutable.List.foreach(List.scala:318)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
at scala.collection.AbstractTraversable.map(Traversable.scala:105)
at com.typesafe.sbteclipse.core.Eclipse$$anonfun$5$$anonfun$apply$4.apply(Eclipse.scala:120)
at com.typesafe.sbteclipse.core.Eclipse$$anonfun$5$$anonfun$apply$4.apply(Eclipse.scala:116)
at scala.Option$WithFilter.map(Option.scala:206)
at com.typesafe.sbteclipse.core.Eclipse$$anonfun$5.apply(Eclipse.scala:116)
at com.typesafe.sbteclipse.core.Eclipse$$anonfun$5.apply(Eclipse.scala:115)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)
at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47)
at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:251)
at scala.collection.AbstractTraversable.flatMap(Traversable.scala:105)
at com.typesafe.sbteclipse.core.Eclipse$.handleProjects(Eclipse.scala:115)
at com.typesafe.sbteclipse.core.Eclipse$.action(Eclipse.scala:101)
at com.typesafe.sbteclipse.core.Eclipse$$anonfun$eclipseCommand$2.apply(Eclipse.scala:82)
at com.typesafe.sbteclipse.core.Eclipse$$anonfun$eclipseCommand$2.apply(Eclipse.scala:82)
at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:60)
at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:60)
at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:62)
at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:62)
at sbt.Command$.process(Command.scala:95)
at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:87)
at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:87)
at sbt.State$$anon$1.process(State.scala:176)
at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:87)
at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:87)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.MainLoop$.next(MainLoop.scala:87)
at sbt.MainLoop$.run(MainLoop.scala:80)
at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:69)
at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:66)
at sbt.Using.apply(Using.scala:25)
at sbt.MainLoop$.runWithNewLog(MainLoop.scala:66)
at sbt.MainLoop$.runAndClearLast(MainLoop.scala:49)
at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:33)
at sbt.MainLoop$.runLogged(MainLoop.scala:25)
at sbt.xMain.run(Main.scala:26)
at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:57)
at xsbt.boot.Launch$.withContextLoader(Launch.scala:77)
at xsbt.boot.Launch$.run(Launch.scala:57)
at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:45)
at xsbt.boot.Launch$.launch(Launch.scala:65)
at xsbt.boot.Launch$.apply(Launch.scala:16)
at xsbt.boot.Boot$.runImpl(Boot.scala:32)
at xsbt.boot.Boot$.main(Boot.scala:21)
at xsbt.boot.Boot.main(Boot.scala)
[error] could not find scala-library.jar
[error] Use 'last' for the full log.
【问题讨论】:
标签: java eclipse scala playframework playframework-2.0