Help us understand the problem. What is going on with this article?

[Playframework]windowsでactivator startがエラーになる

More than 3 years have passed since last update.

windowsでactivator startができない。
環境は下記の通り
windows7 Professional
activator 1.3.7
play 2.3.10
scala 2.10.2
java 1.8.0_45

入力行が長すぎます。コマンドの構文が誤っています。

activator startコマンドを実行すると下記のエラーが発生。

入力行が長すぎます。
コマンドの構文が誤っています。

対処法
クラスパス・環境変数が長すぎるのが原因のようなので、build.sbtに下記を追記した。
import com.typesafe.sbt.packager.Keys.scriptClasspath

scriptClasspath := {
  val originalClasspath = scriptClasspath.value
  val manifest = new java.util.jar.Manifest()
  manifest.getMainAttributes().putValue("Class-Path", originalClasspath.mkString(" "))
  val classpathJar = (target in Universal).value / "lib" / "classpath.jar"
  IO.jar(Seq.empty, classpathJar, manifest)
  Seq(classpathJar.getName)
}
mappings in Universal += (((target in Universal).value / "lib" / "classpath.jar") -> "lib/classpath.jar")

play アプリケーションのクラスパス指定を短くする
結果別のエラー。

Bad application path: -Dhttp.port=9000

Bad application path: -Dhttp.port=9000

activator start errror - Bad application path: -Dhttp.port=9000
activatorのバグ?
playの設定を変える形での対処法は今のところ無さそう。

とりあえず動かす

Assets.versionedの動作を確認したかったのでプロダクションモードでどうにか起動してみる。

activator stage実行後、
target\universal\stage\bin以下にあるプロジェクト名.batを実行するとplayが起動した。
Why does “activator start” fail with “Bad application path”?

qr_taka
qri
金融工学とITを融合し、新たな価値を創造する専門会社
http://www.quantsresearch.com
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした