Why does the “activator launch” end with the “wrong application”?

I created an application in the Play Framework using activator new .

After the activator start this application, this gives me the following error:

 Bad application path: -Dhttp.port=9000 

enter image description here

How to solve a problem?

+6
source share
1 answer

I had the same problem, but only after creating the binary distribution using the dist command from the activator, when I try to start the playback application using the Bat file and add some configuration parameters, I make the same error.

Here is the error I get

 Bad application path: -Dhttp.port=9009 

So I solve this by editing the Bat file. I manually add all configuration parameters to APP_MAIN_CLASS and before "play.core.server.NettyServer"

sort of:

 set "APP_MAIN_CLASS= -DapplyEvolutions.default=true -Dhttp.port=9009 play.core.server.NettyServer" 
+1
source

Source: https://habr.com/ru/post/980534/


All Articles