Why do i need Scala compiler at runtime? (Play2/Salat with Scalap dependency)
问题 I'm using Scala / Mongo / Casbah / Salat / Play2 and when i try to use Salat it seems it has a dependency to Scalap. It works fine when running the application with play run but with play start i get the following stack: [info] application - Can't create user java.lang.NoClassDefFoundError: scala/tools/nsc/util/ClassPath$JavaContext at scala.tools.scalap.scalax.rules.scalasig.ScalaSigParser$.scalaSigFromAttribute(ScalaSig.scala:35) ~[scalap-2.9.1.jar:na] at scala.tools.scalap.scalax.rules