为什么"激活器启动"会因"错误的应用程序路径"而失败?

Ash*_*tan 6 java playframework typesafe-activator

我在Play Framework中创建了一个应用程序activator new.

activator start这个应用程序,它给了我以下错误:

Bad application path: -Dhttp.port=9000
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

如何解决这个问题?

Uba*_*dah 1

我遇到了同样的问题,但只有在使用激活器中的 dist 命令创建二进制发行版之后,当我尝试使用 Bat 文件运行 play 应用程序并添加一些配置参数时,我才会出现相同的错误。

这是我收到的错误

Bad application path: -Dhttp.port=9009
Run Code Online (Sandbox Code Playgroud)

所以我解决这个问题的方法是编辑Bat文件。我手动将所有配置参数添加到 APP_MAIN_CLASS 中“play.core.server.NettyServer”之前

就像是:

set "APP_MAIN_CLASS= -DapplyEvolutions.default=true -Dhttp.port=9009 play.core.server.NettyServer"
Run Code Online (Sandbox Code Playgroud)